mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
set exit status to 1 if -n is used without -i and -o
This commit is contained in:
parent
c22cfa6294
commit
474f0ce009
@ -1393,7 +1393,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
if (mode != (SIO_PLAY | SIO_REC)) {
|
if (mode != (SIO_PLAY | SIO_REC)) {
|
||||||
log_puts("both -i and -o required\n");
|
log_puts("both -i and -o required\n");
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!offline())
|
if (!offline())
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user