summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2000-05-01 19:48:04 +0000
committerprovos <provos@openbsd.org>2000-05-01 19:48:04 +0000
commit6368b86a1205b18e042414ee7a975b62754bd31b (patch)
treef30f6fd3d1333e88ec3f8b4670af9de73acb3ca1
parent- finish removing last pieces of in-place extraction. (diff)
downloadwireguard-openbsd-6368b86a1205b18e042414ee7a975b62754bd31b.tar.xz
wireguard-openbsd-6368b86a1205b18e042414ee7a975b62754bd31b.zip
accept valid intervals for -w
-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':