summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-10-10 15:00:59 +0200
committerLubomir Rintel <lkundrak@v3.sk>2017-10-30 17:38:37 +0100
commit6af5030cf2374e8f2aff43df957ca2bbee5849dd (patch)
tree2e46e6f4df737c4715a4662112409588f4fb58f7 /src/devices
parentd7f7725ae8c965756902bd492bf2cf0834319548 (diff)
downloadNetworkManager-6af5030cf2374e8f2aff43df957ca2bbee5849dd.tar.gz
manager: add a method to get a particular device of given type
And also make the remove_device() method use it behind the scenes.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/nm-device-ppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-device-ppp.c b/src/devices/nm-device-ppp.c
index 09b25f50e2..8b3968d513 100644
--- a/src/devices/nm-device-ppp.c
+++ b/src/devices/nm-device-ppp.c
@@ -117,7 +117,7 @@ ppp_ip4_config (NMPPPManager *ppp_manager,
return;
}
if (renamed)
- nm_manager_remove_device (nm_manager_get (), iface);
+ nm_manager_remove_device (nm_manager_get (), iface, NM_DEVICE_TYPE_PPP);
nm_device_activate_schedule_ip4_config_result (device, config);
return;
@@ -195,7 +195,7 @@ act_stage3_ip4_config_start (NMDevice *device,
if (!nm_device_take_over_link (device, priv->pending_ifname, &renamed))
return NM_ACT_STAGE_RETURN_FAILURE;
if (renamed)
- nm_manager_remove_device (nm_manager_get (), priv->pending_ifname);
+ nm_manager_remove_device (nm_manager_get (), priv->pending_ifname, NM_DEVICE_TYPE_PPP);
if (out_config)
*out_config = g_steal_pointer (&priv->pending_ip4_config);
else