]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-publish.c
fix compilation when compiled with DBM instead of gdbm. Patch supplied from Padraig...
[catta] / avahi-utils / avahi-publish.c
index 4edca6ffa2483900ef9b28937761cbcce293eba6..4e751763196ccbb3e5b9ec092359e0c486287879 100644 (file)
@@ -256,7 +256,6 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv
     c->port = 0;
     c->txt = c->subtypes = NULL;
 
-    opterr = 0;
     while ((o = getopt_long(argc, argv, "hVsavd:H:f", long_options, NULL)) >= 0) {
 
         switch(o) {
@@ -290,7 +289,6 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv
                 c->subtypes = avahi_string_list_add(c->subtypes, optarg);
                 break;
             default:
-                fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]);
                 return -1;
         }
     }