core: strict return type in g_object_ref()

This is now a requirement when using glib 2.56.
This commit is contained in:
Aleksander Morgado
2021-04-30 11:05:42 +00:00
parent edee1e3f84
commit 25a1b28fbf
11 changed files with 52 additions and 52 deletions
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;