]> git.sesse.net Git - vlc/commitdiff
config: Rename strtoi() to vlc_strtoi()
authorKamil Rytarowski <n54@gmx.com>
Fri, 6 Feb 2015 11:16:05 +0000 (11:16 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 6 Feb 2015 11:35:26 +0000 (12:35 +0100)
strtoi(3) is a function in the Standard C Library of NetBSD.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/config/file.c

index 7bab109d00bf72c5ec02bf7c3eefa55a70315ed6..b44569831234bf1574645b6852d4c40f4c0bf6c9 100644 (file)
@@ -138,7 +138,7 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
 }
 
 
-static int64_t strtoi (const char *str)
+static int64_t vlc_strtoi (const char *str)
 {
     char *end;
     long long l;
@@ -223,7 +223,7 @@ int config_LoadConfigFile( vlc_object_t *p_this )
                 int64_t l;
 
                 errno = 0;
-                l = strtoi (psz_option_value);
+                l = vlc_strtoi (psz_option_value);
                 if ((l > item->max.i) || (l < item->min.i))
                     errno = ERANGE;
                 if (errno)