[vlc-commits] config: Rename strtoi() to vlc_strtoi()
Kamil Rytarowski
git at videolan.org
Fri Feb 6 12:38:19 CET 2015
vlc | branch: master | Kamil Rytarowski <n54 at gmx.com> | Fri Feb 6 11:16:05 2015 +0000| [4b1dbb7fa984c3390c9a68e00fa2fa7d1ad72b80] | committer: Jean-Baptiste Kempf
config: Rename strtoi() to vlc_strtoi()
strtoi(3) is a function in the Standard C Library of NetBSD.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b1dbb7fa984c3390c9a68e00fa2fa7d1ad72b80
---
src/config/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/config/file.c b/src/config/file.c
index 7bab109..b445698 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -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)
More information about the vlc-commits
mailing list