]> git.meshlink.io Git - catta/blobdiff - avahi-autoipd/main.c
Add inotify support for /ect/avahi/services and /etc/avahi/hosts. Based on a patch...
[catta] / avahi-autoipd / main.c
index 58811a3e91194058a634265419623096d3fe6970..bf3e775393e1984b6eed45f045c4824292bf3ea5 100644 (file)
@@ -1026,7 +1026,7 @@ static int drop_privs(void) {
         set_env("LOGNAME", pw->pw_name);
         set_env("HOME", pw->pw_dir);
         
-        daemon_log(LOG_ERR, "Successfully dropped root privileges.");
+        daemon_log(LOG_INFO, "Successfully dropped root privileges.");
     }
     
     return 0;
@@ -1464,7 +1464,6 @@ static int parse_command_line(int argc, char *argv[]) {
         { NULL, 0, NULL, 0 }
     };
 
-    opterr = 0;
     while ((c = getopt_long(argc, argv, "hDskrcVS:w", long_options, NULL)) >= 0) {
 
         switch(c) {
@@ -1523,7 +1522,6 @@ static int parse_command_line(int argc, char *argv[]) {
 #endif
 
             default:
-                fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]);
                 return -1;
         }
     }