summaryrefslogtreecommitdiff
path: root/usr.bin/du/du.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-01-25 06:20:04 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-01-25 06:20:04 +0000
commit0603fdc4ea58afb3678b848ac8ed66c916143ebd (patch)
tree5bf052c8110aac4ed9d66fa063fb996496887c63 /usr.bin/du/du.c
parent793811577f55d77d0919abdaa7dbeda3e9880422 (diff)
lint says Pflag isn't needed. i concur
Diffstat (limited to 'usr.bin/du/du.c')
-rw-r--r--usr.bin/du/du.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 85449bac815..0674e069e4f 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: du.c,v 1.18 2005/04/17 12:27:23 jmc Exp $ */
+/* $OpenBSD: du.c,v 1.19 2006/01/25 06:20:03 tedu Exp $ */
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1989, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: du.c,v 1.18 2005/04/17 12:27:23 jmc Exp $";
+static const char rcsid[] = "$OpenBSD: du.c,v 1.19 2006/01/25 06:20:03 tedu Exp $";
#endif
#endif /* not lint */
@@ -74,26 +74,25 @@ main(int argc, char *argv[])
long blocksize;
quad_t totalblocks;
int ftsoptions, listdirs, listfiles;
- int Hflag, Lflag, Pflag, aflag, cflag, hflag, kflag, sflag;
+ int Hflag, Lflag, aflag, cflag, hflag, kflag, sflag;
int ch, notused, rval;
char **save;
save = argv;
- Hflag = Lflag = Pflag = aflag = cflag = hflag = kflag = sflag = 0;
+ Hflag = Lflag = aflag = cflag = hflag = kflag = sflag = 0;
totalblocks = 0;
ftsoptions = FTS_PHYSICAL;
while ((ch = getopt(argc, argv, "HLPachksxr")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
- Lflag = Pflag = 0;
+ Lflag = 0;
break;
case 'L':
Lflag = 1;
- Hflag = Pflag = 0;
+ Hflag = 0;
break;
case 'P':
- Pflag = 1;
Hflag = Lflag = 0;
break;
case 'a':