]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/main.c
properly finish getopt argument table with a NULL entry (see #50)
[catta] / avahi-daemon / main.c
index 82a1679a9e1b05daa4677d7921e36f0b4e6202e0..0c85760f6b7932c1ac9bee92b8ec4cf791162a14 100644 (file)
@@ -594,10 +594,12 @@ static int load_config_file(DaemonConfig *c) {
                 } else if (strcasecmp(p->key, "rlimit-stack") == 0) {
                     c->rlimit_stack_set = 1;
                     c->rlimit_stack = atoi(p->value);
-#ifdef RLIMIT_NPROC
                 } else if (strcasecmp(p->key, "rlimit-nproc") == 0) {
+#ifdef RLIMIT_NPROC
                     c->rlimit_nproc_set = 1;
                     c->rlimit_nproc = atoi(p->value);
+#else
+                    avahi_log_error("Ignoring configuration key \"%s\" in group \"%s\"\n", p->key, g->name);
 #endif
                 } else {
                     avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name);