aboutsummaryrefslogtreecommitdiff
path: root/lib/poll-loop.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-09-17 10:33:10 -0700
committerBen Pfaff <blp@nicira.com>2010-10-01 10:25:29 -0700
commit4e8e4213a815a30216e855a805a8bcd5b8c5a886 (patch)
tree38dbb503be4f22ae804f3e5f83459c975d83886a /lib/poll-loop.c
parentadf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9 (diff)
Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.
These macros require one fewer argument by switching, which makes code that uses them shorter and more readable.
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r--lib/poll-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index 70360b9b..6aefc768 100644
--- a/lib/poll-loop.c
+++ b/lib/poll-loop.c
@@ -171,7 +171,7 @@ poll_block(void)
}
n_pollfds = 0;
- LIST_FOR_EACH (pw, struct poll_waiter, node, &waiters) {
+ LIST_FOR_EACH (pw, node, &waiters) {
pw->pollfd = &pollfds[n_pollfds];
pollfds[n_pollfds].fd = pw->fd;
pollfds[n_pollfds].events = pw->events;
@@ -190,7 +190,7 @@ poll_block(void)
log_wakeup(&timeout_backtrace, "%d-ms timeout", timeout);
}
- LIST_FOR_EACH_SAFE (pw, next, struct poll_waiter, node, &waiters) {
+ LIST_FOR_EACH_SAFE (pw, next, node, &waiters) {
if (pw->pollfd->revents && VLOG_IS_DBG_ENABLED()) {
log_wakeup(pw->backtrace, "%s%s%s%s%s on fd %d",
pw->pollfd->revents & POLLIN ? "[POLLIN]" : "",