summaryrefslogtreecommitdiff
path: root/src/technology.c
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 /src/technology.c
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 'src/technology.c')
-rw-r--r--src/technology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/technology.c b/src/technology.c
index 8d5de78d..c1400154 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -959,7 +959,7 @@ static struct connman_technology *technology_get(enum connman_service_type type)
return NULL;
}
- technology_list = g_slist_append(technology_list, technology);
+ technology_list = g_slist_prepend(technology_list, technology);
technology_added_signal(technology);
@@ -1102,7 +1102,7 @@ int __connman_technology_add_device(struct connman_device *device)
if (!technology->enable_persistent)
__connman_device_disable(device);
- technology->device_list = g_slist_append(technology->device_list,
+ technology->device_list = g_slist_prepend(technology->device_list,
device);
return 0;