summaryrefslogtreecommitdiff
path: root/src/zeroconf.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-09-05 23:59:33 +0000
committerEric Wong <normalperson@yhbt.net>2007-09-05 23:59:33 +0000
commit4a2122eaf4bffdf7ebb012fe6348602d8e54ced0 (patch)
treeae1e3307e08d3e36e5e7a7e50960f2eae8234670 /src/zeroconf.c
parentac58dce7df97a97b8e2d71a76b5fa8805653959a (diff)
conf: improved boolean config parameter handling from -ke
the force flag will issue FATAL() if an invalid value is specified git-svn-id: https://svn.musicpd.org/mpd/trunk@6857 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/zeroconf.c')
-rw-r--r--src/zeroconf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index 1836c64ca..aab09143a 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -558,11 +558,9 @@ void initZeroconf(void)
const char *serviceName = SERVICE_NAME;
ConfigParam *param;
- zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED);
- if (zeroconfEnabled == -1)
+ zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED, 1);
+ if (zeroconfEnabled == CONF_BOOL_UNSET)
zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED;
- else if (zeroconfEnabled < 0)
- exit(EXIT_FAILURE);
if (!zeroconfEnabled)
return;