diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 9556d1bc8a..baa036b4d8 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -15164,7 +15164,7 @@ sriov_deactivate_cb (GError *error, gpointer user_data) if (nm_utils_error_is_cancelled (error, TRUE)) return; - deactivate_ready (self, (NMDeviceStateReason) reason); + deactivate_ready (self, GPOINTER_TO_INT (reason)); } static void @@ -15466,7 +15466,7 @@ _set_state_full (NMDevice *self, 0, NM_TERNARY_TRUE, sriov_deactivate_cb, - nm_utils_user_data_pack (self, (gpointer) reason)); + nm_utils_user_data_pack (self, GINT_TO_POINTER (reason))); } }