X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-set-host-name.c;h=d4566c6de41dc268967063a9c3a45927ccde8d41;hb=7ec1d734c64bc69fb467c88c99b130b8fc5eb9d7;hp=06f532244352f3850aa0b01bc9023a1494893282;hpb=0cbaf99fc5eea82006dbc07f6c561e5d6d9cefba;p=catta diff --git a/avahi-utils/avahi-set-host-name.c b/avahi-utils/avahi-set-host-name.c index 06f5322..d4566c6 100644 --- a/avahi-utils/avahi-set-host-name.c +++ b/avahi-utils/avahi-set-host-name.c @@ -43,7 +43,7 @@ typedef enum { COMMAND_UNSPEC, COMMAND_HELP, - COMMAND_VERSION, + COMMAND_VERSION } Command; typedef struct Config { @@ -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: %c\n", o); return -1; } }