mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
list: Rename all functions in list.h with ovs_ prefix.
This attempts to prevent namespace collisions with other list libraries Signed-off-by: Ben Warren <ben@skyportsystems.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -74,7 +74,7 @@ rtbsd_notifier_register(struct rtbsd_notifier *notifier,
|
||||
}
|
||||
}
|
||||
|
||||
list_push_back(&all_notifiers, ¬ifier->node);
|
||||
ovs_list_push_back(&all_notifiers, ¬ifier->node);
|
||||
notifier->cb = cb;
|
||||
notifier->aux = aux;
|
||||
|
||||
@@ -90,8 +90,8 @@ rtbsd_notifier_unregister(struct rtbsd_notifier *notifier)
|
||||
OVS_EXCLUDED(rtbsd_mutex)
|
||||
{
|
||||
ovs_mutex_lock(&rtbsd_mutex);
|
||||
list_remove(¬ifier->node);
|
||||
if (list_is_empty(&all_notifiers)) {
|
||||
ovs_list_remove(¬ifier->node);
|
||||
if (ovs_list_is_empty(&all_notifiers)) {
|
||||
close(notify_sock);
|
||||
notify_sock = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user