summaryrefslogtreecommitdiff
path: root/usr.bin/nfsstat
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-05-01 19:48:05 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-05-01 19:48:05 +0000
commita07d6b314542aba13f2851051dd6b5190b757a83 (patch)
tree461e356ca76eb5e54037ce13403fb5b0e4e9ef27 /usr.bin/nfsstat
parent823876a1ef8760456a5a01963ecf931005676c35 (diff)
accept valid intervals for -w
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r--usr.bin/nfsstat/nfsstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index a3c2fbbbdd2..10c9cc5fa65 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsstat.c,v 1.9 2000/04/18 20:17:54 mickey Exp $ */
+/* $OpenBSD: nfsstat.c,v 1.10 2000/05/01 19:48:04 provos Exp $ */
/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */
/*
@@ -48,7 +48,7 @@ static char copyright[] =
static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93";
static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $";
#else
-static char *rcsid = "$OpenBSD: nfsstat.c,v 1.9 2000/04/18 20:17:54 mickey Exp $";
+static char *rcsid = "$OpenBSD: nfsstat.c,v 1.10 2000/05/01 19:48:04 provos Exp $";
#endif
#endif /* not lint */
@@ -116,7 +116,7 @@ main(argc, argv)
break;
case 'w':
interval = (u_int)strtol(optarg, &p, 0);
- if (*optarg != '\0' && *p == '\0')
+ if (*optarg == '\0' || *p != '\0')
errx(1, "invalid interval");
break;
case 's':