osmo-bts-omldummy: print a brief usage statement if argc < 3
Change-Id: Iff2e3c47ed12f02f75589e7bd0cccb5dab32d040
This commit is contained in:
parent
01342bce4a
commit
94dee95120
|
@ -14,6 +14,11 @@ int main(int argc, char **argv)
|
|||
struct e1inp_line *line;
|
||||
int i;
|
||||
|
||||
if (argc < 3) {
|
||||
fprintf(stderr, "Usage: %s dst_host site_id\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
char *dst_host = argv[1];
|
||||
int site_id = atoi(argv[2]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue