X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-set-host-name.c;h=bad6e4f5302d0d72f7500d148cf3b7909d6355cb;hb=b54a67fe8a7da842fd086a289e5b61c5b518b03e;hp=8672e4e4580cc14c521c84e37f437ef1b0b0f0f0;hpb=8bc7858318a61d998527212e0948a3c469922105;p=catta diff --git a/avahi-utils/avahi-set-host-name.c b/avahi-utils/avahi-set-host-name.c index 8672e4e..bad6e4f 100644 --- a/avahi-utils/avahi-set-host-name.c +++ b/avahi-utils/avahi-set-host-name.c @@ -93,7 +93,6 @@ static int parse_command_line(Config *c, int argc, char *argv[]) { c->command = COMMAND_UNSPEC; c->verbose = 0; - opterr = 0; while ((o = getopt_long(argc, argv, "hVv", long_options, NULL)) >= 0) { switch(o) { @@ -107,7 +106,6 @@ static int parse_command_line(Config *c, int argc, char *argv[]) { c->verbose = 1; break; default: - fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]); return -1; } }