summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-vlan.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-01-04 10:29:06 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-01-06 21:25:55 +0100
commitf96abc8be53379898ed2cc1b6eb2f52341a86e3f (patch)
tree404450465a6afd1fb4f84557831bc345dc99ae60 /src/devices/nm-device-vlan.c
parentfbd32869553dd631c486530a2e543c31041af5c2 (diff)
downloadNetworkManager-f96abc8be53379898ed2cc1b6eb2f52341a86e3f.tar.gz
core: always use gulong to store signal handler ids
We inconsistently use gulong,guint,int types to store signal handler id, but the type returned by g_signal_connect() is a gulong. This has no practical consequences because a int/guint is enough to store the value, however it is better to use a consistent type, also because nm_clear_g_signal_handler() accepts a pointer to the signal id and thus it must be always called with the same pointer type.
Diffstat (limited to 'src/devices/nm-device-vlan.c')
-rw-r--r--src/devices/nm-device-vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c
index 8e79ce7ef5..5ccddbde38 100644
--- a/src/devices/nm-device-vlan.c
+++ b/src/devices/nm-device-vlan.c
@@ -49,8 +49,8 @@ G_DEFINE_TYPE (NMDeviceVlan, nm_device_vlan, NM_TYPE_DEVICE)
typedef struct {
NMDevice *parent;
- guint parent_state_id;
- guint parent_hwaddr_id;
+ gulong parent_state_id;
+ gulong parent_hwaddr_id;
int vlan_id;
} NMDeviceVlanPrivate;