aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-17 20:23:33 +0100
committerMax Kellermann <max@duempel.org>2009-01-17 20:23:33 +0100
commita1a97cc048a443eb71944848592b9827991600fd (patch)
treee3bfbf5bd38a851d2823b99a00f4abba9ba1db43 /src/zeroconf.c
parent4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (diff)
downloadmpd-a1a97cc048a443eb71944848592b9827991600fd.tar.gz
mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.xz
mpd-a1a97cc048a443eb71944848592b9827991600fd.zip
conf: use config_get_bool() instead of getBoolConfigParam()
Diffstat (limited to '')
-rw-r--r--src/zeroconf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index f2945c4cc..dad9a8b7a 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -37,10 +37,8 @@ void initZeroconf(void)
const char *serviceName = SERVICE_NAME;
struct config_param *param;
- zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED, 1);
- if (zeroconfEnabled == CONF_BOOL_UNSET)
- zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED;
-
+ zeroconfEnabled = config_get_bool(CONF_ZEROCONF_ENABLED,
+ DEFAULT_ZEROCONF_ENABLED);
if (!zeroconfEnabled)
return;