From e9641d989b44d596dbf653e676cfa3b30ee60a0c Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Thu, 7 Jan 2021 21:35:20 +0100 Subject: [PATCH] Use PRId64 to correctly identify the format specifier * src/utils.c: Use PRId64 to correctly identify the format specifier for wgint values. This fixes a warning on 32-bit systems where wgint is a long long int instead of the long int that the format specifier indicated. Reported-by: Jeffrey Walton --- src/retr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/retr.c b/src/retr.c index 73f8c717..1efd6a63 100644 --- a/src/retr.c +++ b/src/retr.c @@ -495,8 +495,8 @@ fd_read_body (const char *downloaded_filename, int fd, FILE *out, wgint toread, case Z_STREAM_END: if (exact && sum_read != toread) { - DEBUGP(("zlib stream ended unexpectedly after " - "%ld/%ld bytes\n", sum_read, toread)); + DEBUGP(("zlib stream ended unexpectedly after %"PRId64"/%"PRId64 + " bytes\n", sum_read, toread)); } } @@ -588,7 +588,7 @@ fd_read_body (const char *downloaded_filename, int fd, FILE *out, wgint toread, if (gzstream.total_in != (uLong) sum_read) { - DEBUGP(("zlib read size differs from raw read size (%lu/%ld)\n", + DEBUGP(("zlib read size differs from raw read size (%lu/%"PRId64")\n", gzstream.total_in, sum_read)); } }