listen: fixed unused variable warning without HAVE_UCRED

The local variable "passcred" was only used by ucred code.
This commit is contained in:
Max Kellermann 2008-10-17 17:40:28 +02:00
parent b2839540d6
commit f548216ead
1 changed files with 2 additions and 0 deletions

View File

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