diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bluetooth.c | 2 | ||||
-rw-r--r-- | plugins/wifi.c | 2 |
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') |