From 758381efbaa40d604253259cd43f194db1162859 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 14 Apr 2007 22:19:52 +0000 Subject: Fix error message when passing invalid command line arguments. I admit defeat, tedp wins, merging his patch. (Closes #88) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1424 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-utils/avahi-set-host-name.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'avahi-utils/avahi-set-host-name.c') diff --git a/avahi-utils/avahi-set-host-name.c b/avahi-utils/avahi-set-host-name.c index 8672e4e..bad6e4f 100644 --- a/avahi-utils/avahi-set-host-name.c +++ b/avahi-utils/avahi-set-host-name.c @@ -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: %s\n", argv[optind-1]); return -1; } } -- cgit