aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 17:40:28 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 17:40:28 +0200
commitf548216ead1ea275c2991bbb72feba022f14b053 (patch)
treede81a15eeff992caa721947a2db3d63b435cb51f
parentb2839540d6b93c682b30ec3b15b011e08edaa1d2 (diff)
downloadmpd-f548216ead1ea275c2991bbb72feba022f14b053.tar.gz
mpd-f548216ead1ea275c2991bbb72feba022f14b053.tar.xz
mpd-f548216ead1ea275c2991bbb72feba022f14b053.zip
listen: fixed unused variable warning without HAVE_UCRED
The local variable "passcred" was only used by ucred code.
-rw-r--r--src/listen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c
index ab74f8d02..734d2bbcd 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -74,7 +74,9 @@ static int establishListen(int pf, const struct sockaddr *addrp,
{
int sock;
int allowReuse = ALLOW_REUSE;
+#ifdef HAVE_UCRED
int passcred = 1;
+#endif
if ((sock = socket(pf, SOCK_STREAM, 0)) < 0)
FATAL("socket < 0\n");