aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-05-23 14:26:12 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-05-26 13:14:52 +0000
commit890694e0c38b9f36985f1bc4b54916078f0bb82f (patch)
treee4ad1991ca9ff2860c135a5b06f71ee1f8454cac
parente716a306b1a6cc654523f6b911f15213d85acc85 (diff)
broadband-modem: fix type in the ready() for iface_modem_3gpp_sync()
When calling an async method ona given type, the convention is to use the same type in the corresponding ready() method, so that we can use it without additional casts on the finish().
-rw-r--r--src/mm-broadband-modem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 6bcc924b..90798cce 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -11981,7 +11981,7 @@ iface_modem_time_sync_ready (MMIfaceModemTime *self,
}
static void
-iface_modem_3gpp_sync_ready (MMBroadbandModem *self,
+iface_modem_3gpp_sync_ready (MMIfaceModem3gpp *self,
GAsyncResult *res,
GTask *task)
{
@@ -11990,7 +11990,7 @@ iface_modem_3gpp_sync_ready (MMBroadbandModem *self,
ctx = g_task_get_task_data (task);
- if (!mm_iface_modem_3gpp_sync_finish (MM_IFACE_MODEM_3GPP (self), res, &error))
+ if (!mm_iface_modem_3gpp_sync_finish (self, res, &error))
mm_obj_warn (self, "3GPP interface synchronization failed: %s", error->message);
/* Go on to next step */