summaryrefslogtreecommitdiff
path: root/gzip.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-12-25 19:05:17 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-12-25 19:05:48 -0800
commit46ef963c7b181cf1d8e5c3ae0013ec954df3a33e (patch)
treedad1c30a84195870146219ff95c2e1c959ef518b /gzip.c
parentbcbb26050fe764bb476a08f5b3087c78159d3913 (diff)
downloadgzip-46ef963c7b181cf1d8e5c3ae0013ec954df3a33e.tar.gz
maint: port to gcc -std=c99 -Wstrict-prototypes
This doesn’t fix any bugs, since the code is correct as-is on all C versions. However, it pacifies gcc -std=c99 -Wstrict-prototypes, which complains about a function definition without arguments unless there’s a previous prototype with ‘(void)’. Most (but not all) of this patch merely reverts some recent changes to be more consistent when porting to C23. * dfltcc.c (is_dfltcc_enabled): * gzip.c (get_input_size_and_time): * inflate.c (inflate_stored, inflate_fixed, inflate_dynamic): * unpack.c (read_byte):
Diffstat (limited to 'gzip.c')
-rw-r--r--gzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzip.c b/gzip.c
index 5cfdb24..9602271 100644
--- a/gzip.c
+++ b/gzip.c
@@ -710,7 +710,7 @@ input_eof ()
}
static void
-get_input_size_and_time ()
+get_input_size_and_time (void)
{
ifile_size = -1;
time_stamp.tv_nsec = -1;