mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
This commit is contained in:
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
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue