summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 13:56:14 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-04 12:05:15 +0300
commit3b93b48112dbb3339e4c458bbd9591b76e1af1e5 (patch)
treea690f222834dd450df25f97d3d4168e5f43557ee /plugins
parentdcba9d915ef9b4a6d38a05c2e900cce96e035d89 (diff)
downloadconnman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.tar.gz
connman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.tar.bz2
connman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.zip
Use g_slist_prepend() where appropriate
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bluetooth.c2
-rw-r--r--plugins/wifi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 2af02015..47343bb5 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -636,7 +636,7 @@ static void remove_device_networks(struct connman_device *device)
if (connman_network_get_device(network) != device)
continue;
- key_list = g_slist_append(key_list, key);
+ key_list = g_slist_prepend(key_list, key);
}
for (list = key_list; list != NULL; list = list->next) {
diff --git a/plugins/wifi.c b/plugins/wifi.c
index eec1cfbd..f5690b54 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1659,7 +1659,7 @@ static void network_added(GSupplicantNetwork *supplicant_network)
return;
}
- wifi->networks = g_slist_append(wifi->networks, network);
+ wifi->networks = g_slist_prepend(wifi->networks, network);
}
if (name != NULL && name[0] != '\0')