manager: add explicit cast for g_object_set()

Technically, this is not needed because glib requires that
int is at least 32 bits. Thus, uint32 will be safely promoted
to uint.

Just do the cast to be explict about the expected type.
This commit is contained in:
Thomas Haller 2016-08-16 11:07:36 +02:00
parent 36f8ffad9f
commit 14a7b2a4fe

View file

@ -4920,7 +4920,7 @@ prop_set_auth_done_cb (NMAuthChain *chain,
} else if (!strcmp (pfd->glib_propname, NM_DEVICE_STATISTICS_REFRESH_RATE_MS)) {
g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32));
/* the same here */
g_object_set (object, pfd->glib_propname, g_variant_get_uint32 (value), NULL);
g_object_set (object, pfd->glib_propname, (guint) g_variant_get_uint32 (value), NULL);
} else {
g_assert (g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN));
/* the same here */