c->port = 0;
c->txt = c->subtypes = NULL;
- opterr = 0;
while ((o = getopt_long(argc, argv, "hVsavd:H:f", long_options, NULL)) >= 0) {
switch(o) {
c->subtypes = avahi_string_list_add(c->subtypes, optarg);
break;
default:
- fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]);
return -1;
}
}