diff options
-rw-r--r-- | client.c | 1 | ||||
-rw-r--r-- | server.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -142,7 +142,6 @@ client_main(struct client_ctx *cctx) logfile("client"); error = NULL; - xtimeout = INFTIM; while (!sigterm) { if (sigchld) { waitpid(WAIT_ANY, NULL, WNOHANG); @@ -288,7 +288,7 @@ server_main(int srv_fd) xtimeout = POLL_TIMEOUT; /* Do the poll. */ - if ((nfds = poll(pfds, nfds, xtimeout)) == -1) { + if (poll(pfds, nfds, xtimeout) == -1) { if (errno == EAGAIN || errno == EINTR) continue; fatal("poll failed"); |