Commit f548216e authored by Max Kellermann's avatar Max Kellermann

listen: fixed unused variable warning without HAVE_UCRED

The local variable "passcred" was only used by ucred code.
parent b2839540
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment