summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-08 18:23:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-08 18:23:25 +0000
commit976fe28a5a9e3db4cadf61062a91a55368c3f8fd (patch)
treeacbe35c06c2904cc50481630e5890d02de20ac00 /usr.sbin/pstat
parent21e380748a8c0829802bf588b34117ca06bb544e (diff)
no need to pre-check for % in dformat, it will fail later anyways
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index e764c523f76..d7c10939292 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.70 2007/11/28 17:02:56 tedu Exp $ */
+/* $OpenBSD: pstat.c,v 1.71 2007/12/08 18:23:24 deraadt Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#else
-static char *rcsid = "$OpenBSD: pstat.c,v 1.70 2007/11/28 17:02:56 tedu Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.71 2007/12/08 18:23:24 deraadt Exp $";
#endif
#endif /* not lint */
@@ -156,8 +156,6 @@ main(int argc, char *argv[])
switch (ch) {
case 'd':
dformat = optarg;
- if (*dformat == '%')
- usage();
break;
case 'f':
fileflag = 1;