msc: exit(2) on unsupported positional arguments on command line
Change-Id: Iad858974e9d97ae14f3da6dc21267aafafcda0ef
This commit is contained in:
parent
db4839c267
commit
abbdbfbbab
|
@ -198,6 +198,11 @@ static void handle_options(int argc, char **argv)
|
|||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
if (argc > optind) {
|
||||
fprintf(stderr, "Unsupported positional arguments on command line\n");
|
||||
exit(2);
|
||||
}
|
||||
}
|
||||
|
||||
struct gsm_network *msc_network_alloc(void *ctx,
|
||||
|
|
Loading…
Reference in New Issue