2008-01-17 Dan Williams <dcbw@redhat.com>
* src/nm-device-interface.c - (nm_device_interface_check_connection_conflicts): need to actually get the interface, not cast to the object * src/nm-device.c - (nm_device_check_connection_conflicts): need to get the device class, not cast the device to the device class git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3244 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1105,14 +1105,14 @@ nm_device_deactivate (NMDeviceInterface *device)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
nm_device_check_connection_conflicts (NMDeviceInterface *device,
|
||||
nm_device_check_connection_conflicts (NMDeviceInterface *dev_iface,
|
||||
NMConnection *connection,
|
||||
NMConnection *system_connection)
|
||||
{
|
||||
NMDeviceClass *klass = NM_DEVICE_CLASS (NM_DEVICE (device));
|
||||
NMDeviceClass *klass = NM_DEVICE_GET_CLASS (NM_DEVICE (dev_iface));
|
||||
|
||||
if (klass->check_connection_conflicts)
|
||||
return klass->check_connection_conflicts (NM_DEVICE (device), connection, system_connection);
|
||||
return klass->check_connection_conflicts (NM_DEVICE (dev_iface), connection, system_connection);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user