From ab14f8a3c7a85c289ea8a664ba95a618aee59a67 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sun, 3 Jun 2007 19:30:37 +0000 Subject: Oops, forgot to test that last bool commit. Fixing an error and warning. git-svn-id: https://svn.musicpd.org/mpd/trunk@6470 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/zeroconf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zeroconf.c') diff --git a/src/zeroconf.c b/src/zeroconf.c index cb2f8abc6..7224f9688 100644 --- a/src/zeroconf.c +++ b/src/zeroconf.c @@ -38,7 +38,7 @@ #define DEFAULT_ZEROCONF_ENABLED 1 -static zeroconfEnabled; +static int zeroconfEnabled; static struct ioOps zeroConfIo = { }; @@ -551,13 +551,13 @@ static void init_zeroconf_osx(const char *serviceName) void initZeroconf(void) { - const char* serviceName = SERVICE_NAME; + const char *serviceName = SERVICE_NAME; ConfigParam *param; zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED); - if (enabled == -1) + if (zeroconfEnabled == -1) zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED; - else if (enabled < 0) + else if (zeroconfEnabled < 0) exit(EXIT_FAILURE); if (!zeroconfEnabled) -- cgit v1.2.3