summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-02 14:55:28 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-02 14:55:28 +0100
commiteed198d63d2396eb77f63f01460ecaab3508653e (patch)
treec7003f6b06653d257bc2d580d70758b4288db977 /plugins/ethernet.c
parent54e282e202a13c398c1ea25171b47e98b5b56cae (diff)
downloadconnman-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.c9
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(&ethernet_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(&ethernet_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(&ethernet_mutex);
ethernet_list = g_slist_append(ethernet_list, element);
- g_static_mutex_unlock(&ethernet_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(&ethernet_mutex);
ethernet_list = g_slist_remove(ethernet_list, element);
- g_static_mutex_unlock(&ethernet_mutex);
g_free(ethernet);
}