X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-resolve.c;h=47e7ebfdeefd949429f4d08ec244ef8f4c459c52;hb=ceee295adb1e22818bcaf201f0135760836c5aae;hp=cb7ef9f12d26c0476d9cf5dd488d8cfd45ce7032;hpb=b7d566fc3ec60c0fbbca22af273bc67fdc1372fa;p=catta diff --git a/avahi-utils/avahi-resolve.c b/avahi-utils/avahi-resolve.c index cb7ef9f..47e7ebf 100644 --- a/avahi-utils/avahi-resolve.c +++ b/avahi-utils/avahi-resolve.c @@ -43,10 +43,6 @@ #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; } }