mirror of
https://github.com/mirror/wget.git
synced 2025-02-05 17:20:12 +08:00
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
This commit is contained in:
parent
9f3df123bb
commit
e9641d989b
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user