core: strict return type in g_object_ref()
This is now a requirement when using glib 2.56.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user