summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 10:56:14 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-04 09:05:15 (GMT)
commit3b93b48112dbb3339e4c458bbd9591b76e1af1e5 (patch)
treea690f222834dd450df25f97d3d4168e5f43557ee /src/inet.c
parentdcba9d915ef9b4a6d38a05c2e900cce96e035d89 (diff)
downloadconnman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.zip
connman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.tar.gz
connman-3b93b48112dbb3339e4c458bbd9591b76e1af1e5.tar.bz2
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/inet.c')
-rw-r--r--src/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 1f9bd0d..226e505 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1793,7 +1793,7 @@ GSList *__connman_inet_ipv6_get_prefixes(struct nd_router_advert *hdr,
str = g_strdup_printf("%s/%d", prefix,
pinfo->nd_opt_pi_prefix_len);
- prefixes = g_slist_append(prefixes, str);
+ prefixes = g_slist_prepend(prefixes, str);
DBG("prefix %s", str);