aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cinterion/mm-broadband-bearer-cinterion.c6
-rw-r--r--plugins/huawei/mm-broadband-bearer-huawei.c2
-rw-r--r--plugins/mbm/mm-broadband-bearer-mbm.c2
-rw-r--r--plugins/option/mm-broadband-bearer-hso.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/cinterion/mm-broadband-bearer-cinterion.c b/plugins/cinterion/mm-broadband-bearer-cinterion.c
index f073ac77..c7ebc8a8 100644
--- a/plugins/cinterion/mm-broadband-bearer-cinterion.c
+++ b/plugins/cinterion/mm-broadband-bearer-cinterion.c
@@ -401,7 +401,7 @@ dial_3gpp (MMBroadbandBearer *self,
g_task_set_task_data (task, ctx, (GDestroyNotify) dial_3gpp_context_free);
/* Setup context */
- ctx->self = g_object_ref (self);
+ ctx->self = MM_BROADBAND_BEARER_CINTERION (g_object_ref (self));
ctx->modem = g_object_ref (modem);
ctx->primary = g_object_ref (primary);
ctx->cid = cid;
@@ -602,8 +602,8 @@ disconnect_3gpp (MMBroadbandBearer *self,
g_task_set_task_data (task, ctx, (GDestroyNotify) disconnect_3gpp_context_free);
/* Setup context */
- ctx->self = g_object_ref (self);
- ctx->modem = g_object_ref (modem);
+ ctx->self = MM_BROADBAND_BEARER_CINTERION (g_object_ref (self));
+ ctx->modem = MM_BASE_MODEM (g_object_ref (modem));
ctx->primary = g_object_ref (primary);
ctx->data = g_object_ref (data);
ctx->cid = cid;
diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c
index cb4c5d20..9407d628 100644
--- a/plugins/huawei/mm-broadband-bearer-huawei.c
+++ b/plugins/huawei/mm-broadband-bearer-huawei.c
@@ -509,7 +509,7 @@ connect_3gpp (MMBroadbandBearer *_self,
/* Setup connection context */
ctx = g_slice_new0 (Connect3gppContext);
- ctx->modem = g_object_ref (modem);
+ ctx->modem = MM_BASE_MODEM (g_object_ref (modem));
ctx->data = g_object_ref (data);
ctx->step = CONNECT_3GPP_CONTEXT_STEP_FIRST;
diff --git a/plugins/mbm/mm-broadband-bearer-mbm.c b/plugins/mbm/mm-broadband-bearer-mbm.c
index 8de7a09f..ea51e184 100644
--- a/plugins/mbm/mm-broadband-bearer-mbm.c
+++ b/plugins/mbm/mm-broadband-bearer-mbm.c
@@ -558,7 +558,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
GTask *task;
ctx = g_new0 (GetIpConfig3gppContext, 1);
- ctx->modem = g_object_ref (modem);
+ ctx->modem = MM_BASE_MODEM (g_object_ref (modem));
ctx->primary = g_object_ref (primary);
ctx->family = ip_family;
diff --git a/plugins/option/mm-broadband-bearer-hso.c b/plugins/option/mm-broadband-bearer-hso.c
index 908d32c6..4e03ab9e 100644
--- a/plugins/option/mm-broadband-bearer-hso.c
+++ b/plugins/option/mm-broadband-bearer-hso.c
@@ -191,7 +191,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
gchar *command;
ctx = g_slice_new0 (GetIpConfig3gppContext);
- ctx->modem = g_object_ref (modem);
+ ctx->modem = MM_BASE_MODEM (g_object_ref (modem));
ctx->primary = g_object_ref (primary);
ctx->cid = cid;