devices: flip the ordering of priv->slaves

Keep priv->slaves in the order that slaves were attached, rather than
in reverse order.

Among other things, this makes the errors from
nm_device_master_check_slave_physical_port() more consistent.
This commit is contained in:
Dan Winship 2014-02-25 15:55:28 -05:00
parent 0b2f4979b1
commit 1f22c8859a

View file

@ -1352,7 +1352,7 @@ nm_device_master_add_slave (NMDevice *dev, NMDevice *slave, gboolean configure)
info->configure = configure;
info->watch_id = g_signal_connect (slave, "state-changed",
G_CALLBACK (slave_state_changed), dev);
priv->slaves = g_slist_prepend (priv->slaves, info);
priv->slaves = g_slist_append (priv->slaves, info);
}
return TRUE;