c->proto = AVAHI_PROTO_UNSPEC;
c->verbose = 0;
- opterr = 0;
while ((o = getopt_long(argc, argv, "hVnav46", long_options, NULL)) >= 0) {
switch(o) {
c->proto = AVAHI_PROTO_INET6;
break;
default:
- fprintf(stderr, "Invalid command line argument: %c\n", o);
return -1;
}
}