From f548216ead1ea275c2991bbb72feba022f14b053 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Oct 2008 17:40:28 +0200 Subject: listen: fixed unused variable warning without HAVE_UCRED The local variable "passcred" was only used by ucred code. --- src/listen.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.2.3