aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/error
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
committerArchie Cobbs <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
commitfa146c53357ea20afd3661d8093ea1db44198d5f (patch)
treea75604be1743b2dbb3ae09ab3f3275f9f1d33d75 /usr.bin/error
parent872963ff956b81ce07e442531158371f50388eb4 (diff)
Notes
Diffstat (limited to 'usr.bin/error')
-rw-r--r--usr.bin/error/Makefile1
-rw-r--r--usr.bin/error/pi.c4
-rw-r--r--usr.bin/error/touch.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/error/Makefile b/usr.bin/error/Makefile
index 4ec0ba0473e53..3bd5adf89b6b7 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 5984bcabe4c8e..c5c1ffb9145cc 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 cef09fddcaf78..08952f7b593d5 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 *));