Output an error message when no interface is specified

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
master
Christian Riesch 2012-03-27 11:50:54 +02:00 committed by Richard Cochran
parent 04e59b0b27
commit d5f953fed9
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ int main(int argc, char *argv[])
} }
if (!nports) { if (!nports) {
fprintf(stderr, "no interface specified\n");
usage(progname); usage(progname);
return -1; return -1;
} }