projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38107a7
)
Fix: use memset instead of poll reset for poll init
author
David Goulet
<dgoulet@efficios.com>
Thu, 16 May 2013 19:02:15 +0000
(15:02 -0400)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/src/common/compat/poll.h
b/src/common/compat/poll.h
index 8403880cf3742c61f4c01e281a69f2f5ff9084db..b019b42c09ff12f81dfc92a12c6872e318f678ea 100644
(file)
--- 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;
}
This page took
0.02602 seconds
and
4
git commands to generate.