diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-02 12:09:48 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-10 14:40:23 +0100 |
commit | e347d965963962b5f00f7c3a9558a7750e08a7a5 (patch) | |
tree | 94fed23cc6aab2bd5588bf5a6aa5807d7ee67c53 | |
parent | 3bc1e02adf6f12dc5fd0fc5b5266ed444296de9d (diff) | |
download | NetworkManager-e347d965963962b5f00f7c3a9558a7750e08a7a5.tar.gz |
device: prepend pending actions list
The order doesn't matter, so prepend instead of append new items
to the pending-actions list.
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index db343b333d..e383311698 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -11272,7 +11272,7 @@ nm_device_add_pending_action (NMDevice *self, const char *action, gboolean asser count++; } - priv->pending_actions = g_slist_append (priv->pending_actions, (char *) action); + priv->pending_actions = g_slist_prepend (priv->pending_actions, (char *) action); count++; _LOGD (LOGD_DEVICE, "add_pending_action (%d): '%s'", count, action); |