summaryrefslogtreecommitdiff
path: root/src/proxy.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/proxy.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/proxy.c')
-rw-r--r--src/proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proxy.c b/src/proxy.c
index fd58a70b..500d4e6c 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -128,7 +128,7 @@ unsigned int connman_proxy_lookup(const char *interface, const char *url,
}
DBG("token %u", lookup->token);
- lookup_list = g_slist_append(lookup_list, lookup);
+ lookup_list = g_slist_prepend(lookup_list, lookup);
return lookup->token;
}
@@ -179,7 +179,7 @@ void connman_proxy_driver_lookup_notify(struct connman_service *service,
if (lookup->cb)
lookup->cb(result, lookup->user_data);
- matches = g_slist_append(matches, lookup);
+ matches = g_slist_prepend(matches, lookup);
}
}