aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/du
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
committerMark Murray <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
commitef0ea716d2f96736e9287160278bbbdb11fb724d (patch)
tree620c2f4d8cb09dac390014511238b22c1e62b4ac /usr.bin/du
parentacd1ad8825b392020927310d02a343e09a4710cc (diff)
Notes
Diffstat (limited to 'usr.bin/du')
-rw-r--r--usr.bin/du/Makefile2
-rw-r--r--usr.bin/du/du.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/du/Makefile b/usr.bin/du/Makefile
index 863e3921f58a4..d279a9702ca27 100644
--- a/usr.bin/du/Makefile
+++ b/usr.bin/du/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PROG= du
-CFLAGS+= -Wall
+WARNS?= 2
DPADD= ${LIBM}
LDADD= -lm
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 85953418fbedb..9d44963af4648 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -117,6 +117,7 @@ main(argc, argv)
int depth;
int Hflag, Lflag, Pflag, aflag, sflag, dflag, cflag, hflag, ch, notused, rval;
char **save;
+ static char dot[] = ".";
Hflag = Lflag = Pflag = aflag = sflag = dflag = cflag = hflag = 0;
@@ -225,7 +226,7 @@ main(argc, argv)
if (!*argv) {
argv = save;
- argv[0] = ".";
+ argv[0] = dot;
argv[1] = NULL;
}