diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-03 19:30:37 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-03 19:30:37 +0000 |
commit | ab14f8a3c7a85c289ea8a664ba95a618aee59a67 (patch) | |
tree | ef4fbb7e51a454579e78550669950795f2a1bedf /src | |
parent | f84bfb7c645b65432ab191803f59ceb8c1a8b87c (diff) | |
download | mpd-ab14f8a3c7a85c289ea8a664ba95a618aee59a67.tar.gz mpd-ab14f8a3c7a85c289ea8a664ba95a618aee59a67.tar.xz mpd-ab14f8a3c7a85c289ea8a664ba95a618aee59a67.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/zeroconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |