Fix: use memset instead of poll reset for poll init
authorDavid Goulet <dgoulet@efficios.com>
Thu, 16 May 2013 19:02:15 +0000 (15:02 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 16 May 2013 19:02:15 +0000 (15:02 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/compat/poll.h

index 8403880cf3742c61f4c01e281a69f2f5ff9084db..b019b42c09ff12f81dfc92a12c6872e318f678ea 100644 (file)
@@ -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;
 }
This page took 0.02602 seconds and 4 git commands to generate.