Skip to content

Commit 89642e5

Browse files
committed
FIX: warning: using the result of an assignment as a condition without parentheses
1 parent 85bc4dc commit 89642e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/dev-net.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static REBOOL Nonblocking_Mode(SOCKET sock)
294294

295295
#ifdef HAS_ASYNC_DNS
296296
// Check if we are polling for completion:
297-
if (host = (HOSTENT*)(sock->net.host_info)) {
297+
if ((host = (HOSTENT*)(sock->net.host_info))) {
298298
// The windows main event handler will change this when it gets WM_DNS event:
299299
if (!GET_FLAG(sock->flags, RRF_DONE)) return DR_PEND; // still waiting
300300
CLR_FLAG(sock->flags, RRF_DONE);
@@ -512,7 +512,7 @@ static REBOOL Nonblocking_Mode(SOCKET sock)
512512

513513
// Check error code:
514514
result = GET_ERROR;
515-
WATCH2("get error: %d %s\n", result, strerror(result));
515+
//WATCH2("get error: %d %s\n", result, strerror(result));
516516
if (result == NE_WOULDBLOCK) {
517517
//printf("timeout: %d\n", sock->timeout);
518518
return DR_PEND; // still waiting

0 commit comments

Comments
 (0)