Commit ab14f8a3 authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent f84bfb7c
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#define DEFAULT_ZEROCONF_ENABLED 1 #define DEFAULT_ZEROCONF_ENABLED 1
static zeroconfEnabled; static int zeroconfEnabled;
static struct ioOps zeroConfIo = { static struct ioOps zeroConfIo = {
}; };
...@@ -551,13 +551,13 @@ static void init_zeroconf_osx(const char *serviceName) ...@@ -551,13 +551,13 @@ static void init_zeroconf_osx(const char *serviceName)
void initZeroconf(void) void initZeroconf(void)
{ {
const char* serviceName = SERVICE_NAME; const char *serviceName = SERVICE_NAME;
ConfigParam *param; ConfigParam *param;
zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED); zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED);
if (enabled == -1) if (zeroconfEnabled == -1)
zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED; zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED;
else if (enabled < 0) else if (zeroconfEnabled < 0)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
if (!zeroconfEnabled) if (!zeroconfEnabled)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment