From: David Goulet Date: Thu, 16 May 2013 19:02:15 +0000 (-0400) Subject: Fix: use memset instead of poll reset for poll init X-Git-Tag: v2.2.0-rc3~58 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c5854b1c8a413ec3803df8a9f15369c3ec876977;p=lttng-tools.git Fix: use memset instead of poll reset for poll init Signed-off-by: David Goulet --- diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index 8403880cf..b019b42c0 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -164,7 +164,7 @@ static inline void lttng_poll_reset(struct lttng_poll_event *events) */ static inline void lttng_poll_init(struct lttng_poll_event *events) { - lttng_poll_reset(events); + memset(events, 0, sizeof(struct lttng_poll_event)); /* Set fd to -1 so if clean before created, we don't close 0. */ events->epfd = -1; }