aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-01-10 01:42:24 +0000
committerBruce Evans <bde@FreeBSD.org>1995-01-10 01:42:24 +0000
commit12981249c83e79f6947bca6c3f90b415d828c602 (patch)
treebb045bc56b219bee5789d708e04c4da5e238a44b /sbin
parentf5c4a278464a11a7e6cadbb5f4e2722c6429d19a (diff)
downloadsrc-12981249c83e79f6947bca6c3f90b415d828c602.tar.gz
src-12981249c83e79f6947bca6c3f90b415d828c602.zip
Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
Notes
Notes: svn path=/head/; revision=5459
Diffstat (limited to 'sbin')
-rw-r--r--sbin/comcontrol/comcontrol.c3
-rw-r--r--sbin/i386/comcontrol/comcontrol.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sbin/comcontrol/comcontrol.c b/sbin/comcontrol/comcontrol.c
index cb65f18990a7..17c288274f13 100644
--- a/sbin/comcontrol/comcontrol.c
+++ b/sbin/comcontrol/comcontrol.c
@@ -48,7 +48,8 @@ int main(int argc, char *argv[])
int res = 0;
int dtrwait = -1, drainwait = -1;
- if ((argc < 2) || (argc > 5)) usage(argv[0]);
+ if (argc < 2)
+ usage(argv[0]);
fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
if (fd < 0) {
diff --git a/sbin/i386/comcontrol/comcontrol.c b/sbin/i386/comcontrol/comcontrol.c
index cb65f18990a7..17c288274f13 100644
--- a/sbin/i386/comcontrol/comcontrol.c
+++ b/sbin/i386/comcontrol/comcontrol.c
@@ -48,7 +48,8 @@ int main(int argc, char *argv[])
int res = 0;
int dtrwait = -1, drainwait = -1;
- if ((argc < 2) || (argc > 5)) usage(argv[0]);
+ if (argc < 2)
+ usage(argv[0]);
fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
if (fd < 0) {