]> sjero.net Git - wget/commitdiff
[svn] Remove warning under AIX.
authorhniksic <devnull@localhost>
Fri, 24 Jun 2005 22:57:52 +0000 (15:57 -0700)
committerhniksic <devnull@localhost>
Fri, 24 Jun 2005 22:57:52 +0000 (15:57 -0700)
src/ChangeLog
src/cookies.c

index ba28dea380267d460d51a622b7a1dbb685f974d7..6c6dbe132a98672df57e63cd26c3c904bd554998 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-25  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * cookies.c (parse_set_cookies): Cast pointer subtraction to int
+       before using it with %d; AIX compiler warns on this.
+       Reported by Jens Schleusener.
+
 2005-06-24  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http.c (gethttp): Don't prepend / here.
index ffc0cc158f27bf51199d71e12979b8e6891ffcc8..18f68fce05c1ae03fff5b5be01bd47e5f9b77416 100644 (file)
@@ -636,7 +636,7 @@ parse_set_cookies (const char *sc,
   if (!silent)
     logprintf (LOG_NOTQUIET,
               _("Syntax error in Set-Cookie: %s at position %d.\n"),
-              escnonprint (sc), p - sc);
+              escnonprint (sc), (int) (p - sc));
   return NULL;
 }
 \f