Remove excessive argc checking. It was impossible to set `dtrwait' and

and `drainwait' in a single command.
This commit is contained in:
Bruce Evans 1995-01-10 01:42:24 +00:00
parent f5c4a27846
commit 12981249c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5459
2 changed files with 4 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {