Commit 645ab39b authored by Dan Winship's avatar Dan Winship
Browse files

libnm, libnm-glib: fix cut-and-paste-os

Several nm-device-*.c files apparently originally used
nm-device-ethernet.c as a template, but missed a reference to "eth" in
class_init.
parent 26eafd34
......@@ -289,12 +289,12 @@ get_property (GObject *object,
}
static void
nm_device_bond_class_init (NMDeviceBondClass *eth_class)
nm_device_bond_class_init (NMDeviceBondClass *bond_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (bond_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (bond_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceBondPrivate));
g_type_class_add_private (bond_class, sizeof (NMDeviceBondPrivate));
/* virtual methods */
object_class->constructed = constructed;
......
......@@ -266,12 +266,12 @@ get_property (GObject *object,
}
static void
nm_device_infiniband_class_init (NMDeviceInfinibandClass *eth_class)
nm_device_infiniband_class_init (NMDeviceInfinibandClass *ib_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (ib_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (ib_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceInfinibandPrivate));
g_type_class_add_private (ib_class, sizeof (NMDeviceInfinibandPrivate));
/* virtual methods */
object_class->constructed = constructed;
......
......@@ -297,12 +297,12 @@ get_property (GObject *object,
}
static void
nm_device_team_class_init (NMDeviceTeamClass *eth_class)
nm_device_team_class_init (NMDeviceTeamClass *team_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (team_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (team_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceTeamPrivate));
g_type_class_add_private (team_class, sizeof (NMDeviceTeamPrivate));
/* virtual methods */
object_class->constructed = constructed;
......
......@@ -297,12 +297,12 @@ get_property (GObject *object,
}
static void
nm_device_vlan_class_init (NMDeviceVlanClass *eth_class)
nm_device_vlan_class_init (NMDeviceVlanClass *vlan_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (vlan_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (vlan_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceVlanPrivate));
g_type_class_add_private (vlan_class, sizeof (NMDeviceVlanPrivate));
/* virtual methods */
object_class->constructed = constructed;
......
......@@ -248,13 +248,13 @@ get_property (GObject *object,
}
static void
nm_device_bond_class_init (NMDeviceBondClass *eth_class)
nm_device_bond_class_init (NMDeviceBondClass *bond_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (bond_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (bond_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (bond_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceBondPrivate));
g_type_class_add_private (bond_class, sizeof (NMDeviceBondPrivate));
/* virtual methods */
object_class->dispose = dispose;
......
......@@ -224,13 +224,13 @@ get_property (GObject *object,
}
static void
nm_device_infiniband_class_init (NMDeviceInfinibandClass *eth_class)
nm_device_infiniband_class_init (NMDeviceInfinibandClass *ib_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (ib_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (ib_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (ib_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceInfinibandPrivate));
g_type_class_add_private (ib_class, sizeof (NMDeviceInfinibandPrivate));
/* virtual methods */
object_class->dispose = dispose;
......
......@@ -248,13 +248,13 @@ get_property (GObject *object,
}
static void
nm_device_team_class_init (NMDeviceTeamClass *eth_class)
nm_device_team_class_init (NMDeviceTeamClass *team_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (team_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (team_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (team_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceTeamPrivate));
g_type_class_add_private (team_class, sizeof (NMDeviceTeamPrivate));
/* virtual methods */
object_class->dispose = dispose;
......
......@@ -258,13 +258,13 @@ get_property (GObject *object,
}
static void
nm_device_vlan_class_init (NMDeviceVlanClass *eth_class)
nm_device_vlan_class_init (NMDeviceVlanClass *vlan_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (eth_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (eth_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (eth_class);
GObjectClass *object_class = G_OBJECT_CLASS (vlan_class);
NMObjectClass *nm_object_class = NM_OBJECT_CLASS (vlan_class);
NMDeviceClass *device_class = NM_DEVICE_CLASS (vlan_class);
g_type_class_add_private (eth_class, sizeof (NMDeviceVlanPrivate));
g_type_class_add_private (vlan_class, sizeof (NMDeviceVlanPrivate));
/* virtual methods */
object_class->dispose = dispose;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment