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
This commit is contained in:
J. Alexander Treuman 2007-06-03 19:30:37 +00:00
parent f84bfb7c64
commit ab14f8a3c7

View File

@ -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)