From: Jim Meyering <[email protected]>
* gzip.c (main): Declare using a prototype.
(progerror): Likewise. And make parameter const.
---
gzip.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
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 */
--
1.6.5.3.433.g11067