From 9cc514d21ced5b18c9db1bec418c04a99d3d6c5c Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 26 May 2012 02:55:53 +0200 Subject: [PATCH] Use the right type as result from readline. --- src/ChangeLog | 6 ++++++ src/warc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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" -- 2.39.2