diff options
author | archie <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
commit | 167c036e91fb24a62d627d16a2f3afa6d875c9e2 (patch) | |
tree | e40a696092a51458b052ff258b3700d51fc2ca09 /usr.bin/error | |
parent | 3f56407712318be6faa0b98ad8db4b5a83ef4c93 (diff) | |
download | FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.zip FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.tar.gz |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Diffstat (limited to 'usr.bin/error')
-rw-r--r-- | usr.bin/error/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/error/pi.c | 4 | ||||
-rw-r--r-- | usr.bin/error/touch.c | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/error/Makefile b/usr.bin/error/Makefile index 4ec0ba0..3bd5adf 100644 --- a/usr.bin/error/Makefile +++ b/usr.bin/error/Makefile @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= error +CFLAGS+=-Wall SRCS= main.c input.c pi.c subr.c filter.c touch.c .include <bsd.prog.mk> diff --git a/usr.bin/error/pi.c b/usr.bin/error/pi.c index 5984bca..c5c1ffb 100644 --- a/usr.bin/error/pi.c +++ b/usr.bin/error/pi.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)pi.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: pi.c,v 1.3 1997/11/03 07:44:15 charnier Exp $"; #endif /* not lint */ #include <ctype.h> @@ -208,7 +208,7 @@ extern char **wordv; Errorclass pi() { - char **nwordv; + char **nwordv = NULL; if (wordc < 2) return (C_UNKNOWN); diff --git a/usr.bin/error/touch.c b/usr.bin/error/touch.c index cef09fd..08952f7 100644 --- a/usr.bin/error/touch.c +++ b/usr.bin/error/touch.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: touch.c,v 1.4 1997/11/03 07:44:25 charnier Exp $"; + "$Id: touch.c,v 1.5 1998/02/25 02:24:04 bde Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -512,7 +512,7 @@ execvarg(n_pissed_on, r_argc, r_argv) char ***r_argv; { Eptr p; - char *sep; + char *sep = NULL; int fi; (*r_argv) = (char **)Calloc(n_pissed_on + 3, sizeof(char *)); |