Fix command line handling in tunslip6
Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com> Signed-off-by: Mariano Alvira <mar@devl.org>
This commit is contained in:
parent
c1b318356e
commit
f2f6a7bd53
|
@ -704,7 +704,7 @@ main(int argc, char **argv)
|
||||||
prog = argv[0];
|
prog = argv[0];
|
||||||
setvbuf(stdout, NULL, _IOLBF, 0); /* Line buffered output. */
|
setvbuf(stdout, NULL, _IOLBF, 0); /* Line buffered output. */
|
||||||
|
|
||||||
while((c = getopt(argc, argv, "B:H:D:Lhs:t:v::d::a:p:T")) != -1) {
|
while((c = getopt(argc, argv, "B:HLhs:t:v::d::a:p:T")) != -1) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'B':
|
case 'B':
|
||||||
baudrate = atoi(optarg);
|
baudrate = atoi(optarg);
|
||||||
|
|
Loading…
Reference in a new issue