webmcp

changeset 562:328f120924a2

Removed if-clause when initializing file descriptor set to avoid compiler warning for mondelefant_conn_try_wait
author jbe
date Fri Feb 05 15:51:39 2021 +0100 (2 months ago)
parents e13a3fa97aad
children 2c31275322db
files libraries/mondelefant/mondelefant_native.c
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.c	Fri Feb 05 15:37:48 2021 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_native.c	Fri Feb 05 15:51:39 2021 +0100
     1.3 @@ -483,7 +483,7 @@
     1.4      }
     1.5    }
     1.6    lua_settop(L, 1);
     1.7 -  if (!nonblock) {
     1.8 +  if (!nonblock || 1) {  // execute always to avoid compiler warning
     1.9      fd = PQsocket(conn->pgconn);
    1.10      FD_ZERO(&fds);
    1.11      FD_SET(fd, &fds);

Impressum / About Us