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.12.0-rc1~584 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fbccfe840283f05d76f6159567266434a9b63308;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;