diff options
author | Ben Pfaff <blp@nicira.com> | 2010-09-17 10:33:10 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-10-01 10:25:29 -0700 |
commit | 4e8e4213a815a30216e855a805a8bcd5b8c5a886 (patch) | |
tree | 38dbb503be4f22ae804f3e5f83459c975d83886a /lib/rtnetlink.c | |
parent | adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9 (diff) | |
download | openvswitch-4e8e4213a815a30216e855a805a8bcd5b8c5a886.tar.gz |
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/rtnetlink.c')
-rw-r--r-- | lib/rtnetlink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rtnetlink.c b/lib/rtnetlink.c index f5a6df8a1..2e1c17330 100644 --- a/lib/rtnetlink.c +++ b/lib/rtnetlink.c @@ -166,8 +166,7 @@ rtnetlink_report_change(const struct nlmsghdr *nlmsg, change.master_ifindex = (attrs[IFLA_MASTER] ? nl_attr_get_u32(attrs[IFLA_MASTER]) : 0); - LIST_FOR_EACH (notifier, struct rtnetlink_notifier, node, - &all_notifiers) { + LIST_FOR_EACH (notifier, node, &all_notifiers) { notifier->cb(&change, notifier->aux); } } @@ -177,8 +176,7 @@ rtnetlink_report_notify_error(void) { struct rtnetlink_notifier *notifier; - LIST_FOR_EACH (notifier, struct rtnetlink_notifier, node, - &all_notifiers) { + LIST_FOR_EACH (notifier, node, &all_notifiers) { notifier->cb(NULL, notifier->aux); } } |