summaryrefslogtreecommitdiffstats
path: root/usr.bin/error
diff options
context:
space:
mode:
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 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 *));
OpenPOWER on IntegriCloud