From: Bruno Haible Date: Mon, 5 Mar 2001 21:11:38 +0000 (+0000) Subject: Avoid compiler warnings. X-Git-Tag: v0.10.36~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=645afb0e3c86acdb54ca532b0bd450455e1956c6;p=thirdparty%2Fgettext.git Avoid compiler warnings. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index fe4fb1196..e41ff52d4 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2001-03-05 Bruno Haible + + * vasprintf.c (int_vasprintf): Cast second arg of strtoul, to avoid + warning. + 2001-02-04 Bruno Haible * system.h (O_BINARY, O_TEXT, setmode, fileno): New macros for systems diff --git a/lib/vasprintf.c b/lib/vasprintf.c index cd833ec83..f5b28f405 100644 --- a/lib/vasprintf.c +++ b/lib/vasprintf.c @@ -62,7 +62,7 @@ int_vasprintf (result, format, args) total_width += abs (va_arg (ap, int)); } else - total_width += strtoul (p, &p, 10); + total_width += strtoul (p, (char **) &p, 10); if (*p == '.') { ++p; @@ -72,7 +72,7 @@ int_vasprintf (result, format, args) total_width += abs (va_arg (ap, int)); } else - total_width += strtoul (p, &p, 10); + total_width += strtoul (p, (char **) &p, 10); } while (strchr ("hlLjtz", *p)) ++p;