osmo-bts-omldummy: print a brief usage statement if argc < 3

Change-Id: Iff2e3c47ed12f02f75589e7bd0cccb5dab32d040
This commit is contained in:
Vadim Yanitskiy 2020-06-02 22:18:26 +07:00
parent 01342bce4a
commit 94dee95120
1 changed files with 5 additions and 0 deletions

View File

@ -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]);