From: Jérémie Galarneau Date: Thu, 18 Jul 2019 19:49:28 +0000 (-0400) Subject: Build fix: undeclared variable in poll compat X-Git-Tag: v2.11.0-rc3~154 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=73b4e79ff411b40a1461f9b9fe093cd53115fc6c;p=lttng-tools.git Build fix: undeclared variable in poll compat No `ipfd` variable exists in the compat_poll_wait function. The author meant to use `idle_pfd`. Reported-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index 0220b2785..254ce271e 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -350,7 +350,7 @@ int compat_poll_wait(struct lttng_poll_event *events, int timeout) struct pollfd *idle_pfd = &events->wait.events[idle_pfd_index]; struct pollfd *current_pfd = &events->wait.events[i]; - if (ipfd->revents != 0) { + if (idle_pfd->revents != 0) { swap_pfd = *current_pfd; *current_pfd = *idle_pfd; *idle_pfd = swap_pfd;