diff options
author | Max Kellermann <max@duempel.org> | 2008-10-17 17:40:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-17 17:40:28 +0200 |
commit | f548216ead1ea275c2991bbb72feba022f14b053 (patch) | |
tree | de81a15eeff992caa721947a2db3d63b435cb51f /src | |
parent | b2839540d6b93c682b30ec3b15b011e08edaa1d2 (diff) | |
download | mpd-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/listen.c | 2 |
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"); |