<html><head></head><body>No way. We are not replacing proper function calls with a hand-coding.<br><br><div class="gmail_quote">Le 2 octobre 2018 12:14:34 GMT+03:00, Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Fixes android NDK 17 build<hr> modules/access/dtv/access.c | 20 ++++++--------------<br> 1 file changed, 6 insertions(+), 14 deletions(-)<br><br>diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c<br>index 5c341420ae..040a6350f2 100644<br>--- a/modules/access/dtv/access.c<br>+++ b/modules/access/dtv/access.c<br>@@ -29,9 +29,6 @@<br> #include <vlc_input.h><br> #include <vlc_plugin.h><br> #include <vlc_dialog.h><br>-#ifdef HAVE_SEARCH_H<br>-#include <search.h><br>-#endif<br> <br> #include "dtv/dtv.h"<br> <br>@@ -656,11 +653,6 @@ static uint32_t var_InheritCodeRate (vlc_object_t *obj, const char *varname)<br> return VLC_FEC_AUTO;<br> }<br> <br>-static int modcmp (const void *a, const void *b)<br>-{<br>- return strcasecmp (a, *(const char *const *)b);<br>-}<br>-<br> static const char *var_InheritModulation (vlc_object_t *obj, const char *var)<br> {<br> char *mod = var_InheritString (obj, var);<br>@@ -668,12 +660,12 @@ static const char *var_InheritModulation (vlc_object_t *obj, const char *var)<br> return "";<br> <br> size_t n = sizeof (modulation_vlc) / sizeof (modulation_vlc[0]);<br>- const char *const *p = lfind (mod, modulation_vlc, &n, sizeof (mod), modcmp);<br>- if (p != NULL)<br>- {<br>- free (mod);<br>- return *p;<br>- }<br>+ for (int i = 0; i < n; ++i)<br>+ if (!strcasecmp(modulation_vlc[i], mod))<br>+ {<br>+ free (mod);<br>+ return modulation_vlc[i];<br>+ }<br> <br> /* Backward compatibility with VLC < 1.2 */<br> const char *str;</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>