]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-resolve.c
add a makefile rule for zssh.exe, and add a .pc file for avahi-ui-sharp
[catta] / avahi-utils / avahi-resolve.c
index fe01ae5dc943aad4a98108f7375ab8005bf50ce1..47e7ebfdeefd949429f4d08ec244ef8f4c459c52 100644 (file)
@@ -186,7 +186,6 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv
     c->proto = AVAHI_PROTO_UNSPEC;
     c->verbose = 0;
 
-    opterr = 0;
     while ((o = getopt_long(argc, argv, "hVnav46", long_options, NULL)) >= 0) {
 
         switch(o) {
@@ -212,7 +211,6 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv
                 c->proto = AVAHI_PROTO_INET6;
                 break;
             default:
-                fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]);
                 return -1;
         }
     }