diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-02 14:55:28 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-02 14:55:28 +0100 |
commit | eed198d63d2396eb77f63f01460ecaab3508653e (patch) | |
tree | c7003f6b06653d257bc2d580d70758b4288db977 /plugins/ethernet.c | |
parent | 54e282e202a13c398c1ea25171b47e98b5b56cae (diff) | |
download | connman-eed198d63d2396eb77f63f01460ecaab3508653e.tar.gz connman-eed198d63d2396eb77f63f01460ecaab3508653e.tar.bz2 connman-eed198d63d2396eb77f63f01460ecaab3508653e.zip |
Remove usage of GStaticMutex since it causes compiler problems
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r-- | plugins/ethernet.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index fb8afb4c..d6861f8d 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -41,7 +41,6 @@ struct ethernet_data { unsigned flags; }; -static GStaticMutex ethernet_mutex = G_STATIC_MUTEX_INIT; static GSList *ethernet_list = NULL; static void ethernet_newlink(unsigned short type, int index, @@ -51,8 +50,6 @@ static void ethernet_newlink(unsigned short type, int index, DBG("index %d flags %ld change %ld", index, flags, change); - g_static_mutex_lock(ðernet_mutex); - for (list = ethernet_list; list; list = list->next) { struct connman_element *element = list->data; struct connman_element *netdev; @@ -87,8 +84,6 @@ static void ethernet_newlink(unsigned short type, int index, connman_element_unregister_children(element); } } - - g_static_mutex_unlock(ðernet_mutex); } static struct connman_rtnl ethernet_rtnl = { @@ -192,9 +187,7 @@ static int ethernet_probe(struct connman_element *element) if (ethernet == NULL) return -ENOMEM; - g_static_mutex_lock(ðernet_mutex); ethernet_list = g_slist_append(ethernet_list, element); - g_static_mutex_unlock(ðernet_mutex); connman_element_set_data(element, ethernet); @@ -217,9 +210,7 @@ static void ethernet_remove(struct connman_element *element) iface_down(ethernet); - g_static_mutex_lock(ðernet_mutex); ethernet_list = g_slist_remove(ethernet_list, element); - g_static_mutex_unlock(ðernet_mutex); g_free(ethernet); } |