From 5f618f92e3faa8602b892b6674983e261f5672af Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Sun, 6 Dec 1998 07:42:09 +0000 Subject: [PATCH] Eliminate compiler warnings from -Wall --- usr.bin/at/Makefile | 3 ++- usr.bin/at/at.c | 2 +- usr.bin/at/panic.c | 3 ++- usr.bin/at/parsetime.c | 5 +++-- usr.bin/at/perm.c | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/usr.bin/at/Makefile b/usr.bin/at/Makefile index 55d78b9fbd1..393af838787 100644 --- a/usr.bin/at/Makefile +++ b/usr.bin/at/Makefile @@ -1,8 +1,9 @@ -# $Id: Makefile,v 1.7 1998/06/09 04:07:08 imp Exp $ +# $Id: Makefile,v 1.8 1998/09/19 22:42:03 obrien Exp $ .include "${.CURDIR}/Makefile.inc" PROG= at +CFLAGS+=-Wall SRCS= at.c panic.c parsetime.c perm.c LINKS= ${BINDIR}/at ${BINDIR}/atq \ ${BINDIR}/at ${BINDIR}/atrm \ diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index daded161ad8..3264d5502a2 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -92,7 +92,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ -static char rcsid[] = "$Id: at.c,v 1.13 1997/03/29 04:27:56 imp Exp $"; +static const char rcsid[] = "$Id: at.c,v 1.14 1998/10/15 13:30:48 mckay Exp $"; char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" diff --git a/usr.bin/at/panic.c b/usr.bin/at/panic.c index 7ef0e15d13b..c111dd82338 100644 --- a/usr.bin/at/panic.c +++ b/usr.bin/at/panic.c @@ -37,7 +37,8 @@ /* File scope variables */ -static char rcsid[] = "$Id: panic.c,v 1.6 1997/02/22 19:54:06 peter Exp $"; +static const char rcsid[] = + "$Id: panic.c,v 1.7 1997/06/23 06:44:18 charnier Exp $"; /* External variables */ diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index 8ba6a149d82..8cde1dceeb0 100644 --- a/usr.bin/at/parsetime.c +++ b/usr.bin/at/parsetime.c @@ -143,7 +143,8 @@ static size_t sc_len; /* scanner - lenght of token buffer */ static int sc_tokid; /* scanner - token id */ static int sc_tokplur; /* scanner - is token plural? */ -static char rcsid[] = "$Id: parsetime.c,v 1.14 1998/08/08 14:02:06 alex Exp $"; +static const char rcsid[] = + "$Id: parsetime.c,v 1.15 1998/08/30 17:33:05 steve Exp $"; /* Local functions */ @@ -464,7 +465,7 @@ static void month(struct tm *tm) { long year= (-1); - long mday, wday, mon; + long mday = 0, wday, mon; int tlen; switch (sc_tokid) { diff --git a/usr.bin/at/perm.c b/usr.bin/at/perm.c index d52fd3db199..f1d435246a7 100644 --- a/usr.bin/at/perm.c +++ b/usr.bin/at/perm.c @@ -48,7 +48,7 @@ /* File scope variables */ -static char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: perm.c,v 1.5 1997/02/22 19:54:08 peter Exp $"; /* Function declarations */