[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] build: avoid warnings from -Wstrict-prototypes
From: |
Jim Meyering |
Subject: |
[PATCH 06/10] build: avoid warnings from -Wstrict-prototypes |
Date: |
Fri, 20 Nov 2009 21:06:17 +0100 |
From: Jim Meyering <address@hidden>
* 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
- [PATCH 01/10] build: "make stable" emitted an invalid gnupload command, Jim Meyering, 2009/11/20
- [PATCH 09/10] build: avoid warnings about unused macros, Jim Meyering, 2009/11/20
- [PATCH 02/10] maint: cfg.mk: remove factored-out ftp host/dir definitions, Jim Meyering, 2009/11/20
- [PATCH 08/10] build: util.c: avoid warnings about add_envopt, Jim Meyering, 2009/11/20
- [PATCH 05/10] build: use gnulib's fdopendir module, Jim Meyering, 2009/11/20
- [PATCH 03/10] maint: tweak formatting of bootstrap.conf, Jim Meyering, 2009/11/20
- [PATCH 04/10] build: enable many warnings, Jim Meyering, 2009/11/20
- [PATCH 06/10] build: avoid warnings from -Wstrict-prototypes,
Jim Meyering <=
- [PATCH 07/10] build: avoid many const-related warnings, Jim Meyering, 2009/11/20
- [PATCH 10/10] build: unlzw.c: avoid warnings about unused macros, Jim Meyering, 2009/11/20