Eliminate compiler warnings from -Wall

This commit is contained in:
Archie Cobbs 1998-12-06 07:42:09 +00:00
parent 5d2b41cb4e
commit 5f618f92e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41556
5 changed files with 9 additions and 6 deletions

View File

@ -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 \

View File

@ -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", "_"

View File

@ -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 */

View File

@ -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) {

View File

@ -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 */