wifi/iwd: fix compiler warning about pointer cast in powered_changed()

../src/devices/wifi/nm-device-iwd.c: In function ‘powered_changed’:
    ../src/devices/wifi/nm-device-iwd.c:2336:15: warning: assignment from incompatible pointer type [enabled by default]
         interface = g_object_ref (priv->dbus_device_proxy);
                   ^
This commit is contained in:
Thomas Haller 2019-02-15 17:19:33 +01:00
parent 9a4cd1efd1
commit 1423ad24c0

View file

@ -2333,7 +2333,7 @@ powered_changed (NMDeviceIwd *self, gboolean new_powered)
value = g_dbus_proxy_get_cached_property (priv->dbus_device_proxy, "State");
if (value) {
g_variant_unref (value);
interface = g_object_ref (priv->dbus_device_proxy);
interface = g_object_ref (G_DBUS_INTERFACE (priv->dbus_device_proxy));
} else {
_LOGE (LOGD_WIFI, "Interface %s not found on obj %s",
NM_IWD_STATION_INTERFACE,