From 0e94bdb19ecf13ce77d91ddf0f2a7ad3d3e192ca Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Tue, 28 Nov 2000 18:18:56 +0000 Subject: [PATCH] -Wall cleaning --- usr.sbin/zic/ialloc.c | 2 +- usr.sbin/zic/private.h | 2 +- usr.sbin/zic/scheck.c | 2 +- usr.sbin/zic/zdump.c | 3 +-- usr.sbin/zic/zic.c | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/usr.sbin/zic/ialloc.c b/usr.sbin/zic/ialloc.c index 0d8f1f20ff44..a069032eda51 100644 --- a/usr.sbin/zic/ialloc.c +++ b/usr.sbin/zic/ialloc.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)ialloc.c 8.29"; +static const char elsieid[] = "@(#)ialloc.c 8.29"; #endif /* !defined NOID */ #endif /* !defined lint */ diff --git a/usr.sbin/zic/private.h b/usr.sbin/zic/private.h index 2d0552d4f9d4..585d6e6725ca 100644 --- a/usr.sbin/zic/private.h +++ b/usr.sbin/zic/private.h @@ -30,7 +30,7 @@ #ifndef lint #ifndef NOID -static char privatehid[] = "@(#)private.h 7.48"; +static const char privatehid[] = "@(#)private.h 7.48"; #endif /* !defined NOID */ #endif /* !defined lint */ diff --git a/usr.sbin/zic/scheck.c b/usr.sbin/zic/scheck.c index d895cba40ca4..692bf1a07934 100644 --- a/usr.sbin/zic/scheck.c +++ b/usr.sbin/zic/scheck.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)scheck.c 8.15"; +static const char elsieid[] = "@(#)scheck.c 8.15"; #endif /* !defined lint */ #endif /* !defined NOID */ diff --git a/usr.sbin/zic/zdump.c b/usr.sbin/zic/zdump.c index 97cb68b1f885..cfd94eab4b81 100644 --- a/usr.sbin/zic/zdump.c +++ b/usr.sbin/zic/zdump.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)zdump.c 7.28"; +static const char elsieid[] = "@(#)zdump.c 7.28"; #endif /* !defined NOID */ #endif /* !defined lint */ @@ -134,7 +134,6 @@ static char * abbr P((struct tm * tmp)); static long delta P((struct tm * newp, struct tm * oldp)); static time_t hunt P((char * name, time_t lot, time_t hit)); static size_t longest; -static char * progname; static void show P((char * zone, time_t t, int v)); static void usage(void); diff --git a/usr.sbin/zic/zic.c b/usr.sbin/zic/zic.c index 60ff1725d7bb..109b978e47cd 100644 --- a/usr.sbin/zic/zic.c +++ b/usr.sbin/zic/zic.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)zic.c 7.96"; +static const char elsieid[] = "@(#)zic.c 7.96"; #endif /* !defined NOID */ #endif /* !defined lint */ @@ -21,7 +21,7 @@ static const char rcsid[] = ** On some ancient hosts, predicates like `isspace(C)' are defined ** only if isascii(C) || C == EOF. Modern hosts obey the C Standard, ** which says they are defined only if C == ((unsigned char) C) || C == EOF. -** Neither the C Standard nor Posix require that `isascii' exist. +** Neither the C Standard nor POSIX require that `isascii' exist. ** For portability, we check both ancient and modern requirements. ** If isascii is not defined, the isascii check succeeds trivially. */