From: Jim Meyering Date: Fri, 20 Nov 2009 17:19:18 +0000 (+0100) Subject: build: avoid warnings from -Wstrict-prototypes X-Git-Tag: v1.4~26 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d54af7931a5b2ff7f5cb3759f948ea204a482307;p=debian%2Fgzip build: avoid warnings from -Wstrict-prototypes * gzip.c (main): Declare using a prototype. (progerror): Likewise. And make parameter const. --- diff --git a/gzip.c b/gzip.c index ec3c585..c1280d2 100644 --- a/gzip.c +++ b/gzip.c @@ -391,8 +391,7 @@ local void version() printf ("Written by Jean-loup Gailly.\n"); } -local void progerror (string) - char *string; +local void progerror (char const *string) { int e = errno; fprintf (stderr, "%s: ", program_name); @@ -402,9 +401,7 @@ local void progerror (string) } /* ======================================================================== */ -int main (argc, argv) - int argc; - char **argv; +int main (int argc, char **argv) { int file_count; /* number of files to process */ size_t proglen; /* length of program_name */