summaryrefslogtreecommitdiff
path: root/src/devices/wwan/nm-device-modem.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-23 11:53:53 +0100
committerThomas Haller <thaller@redhat.com>2017-02-23 12:33:41 +0100
commit20b17910d04e2ba09891b09e59bb221c426a43fd (patch)
treeeb07fe5333ab418e6bdd13c3945da27001bd5206 /src/devices/wwan/nm-device-modem.c
parent0a1fd88d5a0c4f266f1983fe7582ff32e16a0ca3 (diff)
downloadNetworkManager-20b17910d04e2ba09891b09e59bb221c426a43fd.tar.gz
modem: add nm_modem_emit_ppp_failed() function
... instead of emitting the signal by name.
Diffstat (limited to 'src/devices/wwan/nm-device-modem.c')
-rw-r--r--src/devices/wwan/nm-device-modem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c
index a84768eef9..3c4ed4d9df 100644
--- a/src/devices/wwan/nm-device-modem.c
+++ b/src/devices/wwan/nm-device-modem.c
@@ -68,10 +68,13 @@ G_DEFINE_TYPE (NMDeviceModem, nm_device_modem, NM_TYPE_DEVICE)
/*****************************************************************************/
static void
-ppp_failed (NMModem *modem, NMDeviceStateReason reason, gpointer user_data)
+ppp_failed (NMModem *modem,
+ guint i_reason,
+ gpointer user_data)
{
NMDevice *device = NM_DEVICE (user_data);
NMDeviceModem *self = NM_DEVICE_MODEM (user_data);
+ NMDeviceStateReason reason = i_reason;
switch (nm_device_get_state (device)) {
case NM_DEVICE_STATE_PREPARE: