From: Giuseppe Scrivano Date: Sat, 26 May 2012 00:55:53 +0000 (+0200) Subject: Use the right type as result from readline. X-Git-Tag: v1.14~24 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=9cc514d21ced5b18c9db1bec418c04a99d3d6c5c Use the right type as result from readline. --- diff --git a/src/ChangeLog b/src/ChangeLog index 533a39e6..8b96c628 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-05-26 Giuseppe Scrivano + + * warc.c (warc_load_cdx_dedup_file): Change type of `line_length' to + ssize_t. + Suggested by: Ángel González + 2012-05-18 Tim Ruehsen * gnutls.c (wgnutls_poll): Honor the specified `timeout' value. diff --git a/src/warc.c b/src/warc.c index 57fdcad0..6935aaf1 100644 --- a/src/warc.c +++ b/src/warc.c @@ -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"