]> 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 cb7ef9f12d26c0476d9cf5dd488d8cfd45ce7032..47e7ebfdeefd949429f4d08ec244ef8f4c459c52 100644 (file)
 
 #include "sigint.h"
 
-#if defined(HAVE_GDBM) || defined(HAVE_DBM)
-#include "stdb.h"
-#endif
-
 typedef enum {
     COMMAND_UNSPEC, 
     COMMAND_HELP,
@@ -190,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) {
@@ -216,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: %c\n", o);
                 return -1;
         }
     }