Commit 421cbbaf authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

net_switch: fix 'unknown option s' warning

parent 7ebf2dd4
......@@ -125,9 +125,11 @@ int main(int argc, char *argv[])
struct netsim_interface nsif;
int sync = 1;
if (netsim_init(&nsif, optarg, &sync) != 0) {
fprintf(stderr, "connecting to %s failed\n", optarg);
return EXIT_FAILURE;
}
nsifs.push_back(nsif);
break;
}
default:
fprintf(stderr, "unknown option %c\n", c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment