From a1a97cc048a443eb71944848592b9827991600fd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 17 Jan 2009 20:23:33 +0100 Subject: conf: use config_get_bool() instead of getBoolConfigParam() --- src/zeroconf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/zeroconf.c') 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; -- cgit v1.2.3