]> sjero.net Git - wget/commitdiff
Use the right type as result from readline.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 26 May 2012 00:55:53 +0000 (02:55 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sat, 26 May 2012 00:55:53 +0000 (02:55 +0200)
src/ChangeLog
src/warc.c

index 533a39e6e07582e1aa57d4f11d245ed28ab16d0a..8b96c628ab9c9995b1c3b8d7f4c22a7e1a48e183 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-26  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       * warc.c (warc_load_cdx_dedup_file): Change type of `line_length' to
+       ssize_t.
+       Suggested by: Ángel González <keisial@gmail.com>
+
 2012-05-18  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * gnutls.c (wgnutls_poll): Honor the specified `timeout' value.
index 57fdcad0766024fde7d0399f630cbe23fbd7c005..6935aaf1b136144626e92a2080047d5129929e93 100644 (file)
@@ -930,7 +930,7 @@ warc_load_cdx_dedup_file (void)
 
   char *lineptr = NULL;
   size_t n = 0;
-  size_t line_length;
+  ssize_t line_length;
 
   /* The first line should contain the CDX header.
      Format:  " CDX x x x x x"