]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: build: fix event ports (Solaris)
authorEmmanuel Hocdet <manu@gandi.net>
Thu, 19 Sep 2019 11:08:26 +0000 (11:08 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Sep 2019 17:08:39 +0000 (19:08 +0200)
Patch 6b308985 "MEDIUM: fd: do not use the FD_POLL_* flags in the
pollers anymore" break ev_evports.c build. Restore variable name
to fix it.

src/ev_evports.c

index e734b220ed401352845dac364c91c50eb3e49d18..bde617d5f21b7a3264156060b680d320bde1c1ba 100644 (file)
@@ -241,10 +241,10 @@ REGPRM3 static void _do_poll(struct poller *p, int exp, int wake)
                /*
                 * Set bits based on the events we received from the port:
                 */
-               n = ((e & POLLIN)    ? FD_EV_READY_R : 0) |
-                   ((e & POLLOUT)   ? FD_EV_READY_W : 0) |
-                   ((e & POLLHUP)   ? FD_EV_SHUT_RW : 0) |
-                   ((e & POLLERR)   ? FD_EV_ERR_RW  : 0);
+               n = ((events & POLLIN)  ? FD_EV_READY_R : 0) |
+                   ((events & POLLOUT) ? FD_EV_READY_W : 0) |
+                   ((events & POLLHUP) ? FD_EV_SHUT_RW : 0) |
+                   ((events & POLLERR) ? FD_EV_ERR_RW  : 0);
 
                /*
                 * Call connection processing callbacks.  Note that it's