aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-cdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-modem-cdma.c')
-rw-r--r--src/mm-modem-cdma.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mm-modem-cdma.c b/src/mm-modem-cdma.c
index e57203ae..1a4fe6a2 100644
--- a/src/mm-modem-cdma.c
+++ b/src/mm-modem-cdma.c
@@ -189,10 +189,12 @@ mm_modem_cdma_get_esn (MMModemCdma *self,
}
static void
-esn_auth_cb (MMAuthRequest *req, GObject *owner, gpointer user_data)
+esn_auth_cb (MMAuthRequest *req,
+ GObject *owner,
+ DBusGMethodInvocation *context,
+ gpointer user_data)
{
MMModemCdma *self = MM_MODEM_CDMA (owner);
- DBusGMethodInvocation *context = user_data;
GError *error = NULL;
/* Return any authorization error, otherwise get the ESN */
@@ -211,8 +213,9 @@ impl_modem_cdma_get_esn (MMModemCdma *self, DBusGMethodInvocation *context)
/* Make sure the caller is authorized to get the ESN */
if (!mm_modem_auth_request (MM_MODEM (self),
MM_AUTHORIZATION_DEVICE,
- esn_auth_cb,
context,
+ esn_auth_cb,
+ NULL,
NULL,
&error)) {
dbus_g_method_return_error (context, error);