diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-04-14 22:19:52 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-04-14 22:19:52 +0000 |
commit | 758381efbaa40d604253259cd43f194db1162859 (patch) | |
tree | ba190e8fd85a8ea1eb24417669bb0b1b880101c9 /avahi-daemon | |
parent | e29f1a1c940e76f1be19ed2c448c7c6257a5cbfe (diff) |
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
Diffstat (limited to 'avahi-daemon')
-rw-r--r-- | avahi-daemon/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index 0b26446..d0a3c85 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -379,7 +379,6 @@ static int parse_command_line(DaemonConfig *c, int argc, char *argv[]) { assert(c); - opterr = 0; while ((o = getopt_long(argc, argv, "hDkVf:rcs", long_options, NULL)) >= 0) { switch(o) { @@ -426,7 +425,6 @@ static int parse_command_line(DaemonConfig *c, int argc, char *argv[]) { c->debug = 1; break; default: - fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]); return -1; } } |