]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid compiler warnings.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Mar 2001 21:11:38 +0000 (21:11 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Mar 2001 21:11:38 +0000 (21:11 +0000)
lib/ChangeLog
lib/vasprintf.c

index fe4fb1196f5a8d9927ab479851f978ad1815d420..e41ff52d4c7fc5541690529c16bfb99eac2ae8e7 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-05  Bruno Haible  <haible@clisp.cons.org>
+
+       * vasprintf.c (int_vasprintf): Cast second arg of strtoul, to avoid
+       warning.
+
 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
 
        * system.h (O_BINARY, O_TEXT, setmode, fileno): New macros for systems
index cd833ec833346ed60be533b330b36b3888d4781d..f5b28f405dafac09ba2341c29b96f2d1c94cd097 100644 (file)
@@ -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;