From a54961fe8783e3f3fd87a80a192c5bbe899474ca Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 22 Jan 2005 15:20:35 +0000 Subject: [PATCH] Stupid typo, spotted by GCC. [originally from svn r5168] --- unix/uxnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/uxnet.c b/unix/uxnet.c index 8804b09b..be7fb70b 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -713,7 +713,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i hints.ai_next = NULL; sprintf(portstr, "%d", port); retcode = getaddrinfo(srcaddr, portstr, &hints, &ai); - if (retcode = 0) { + if (retcode == 0) { addr = ai->ai_addr; addrlen = ai->ai_addrlen; }