diff options
author | Thomas Haller <thaller@redhat.com> | 2015-12-09 17:00:14 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-12-09 17:05:45 +0100 |
commit | 2a14a28fe05ef4db30d03cd37dd03c143bf881fd (patch) | |
tree | ec4b73fc1beb436862af757ece211168557e6100 /src/devices/nm-device.c | |
parent | 590b9a830d4e926e36028d8bcfc89143096a569d (diff) | |
download | NetworkManager-2a14a28fe05ef4db30d03cd37dd03c143bf881fd.tar.gz |
device: pass const NMPlatformLink instance to setup_start()/setup_finish()
NMPlatformLink is a plain struct (not a GObject, for which we usually
don't use const). We certainly don't want the functions to modify the
passed-in data.
Diffstat (limited to 'src/devices/nm-device.c')
-rw-r--r-- | src/devices/nm-device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 1c1eeed59f..ba2231768a 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1780,7 +1780,7 @@ nm_device_create_and_realize (NMDevice *self, } static void -update_device_from_platform_link (NMDevice *self, NMPlatformLink *plink) +update_device_from_platform_link (NMDevice *self, const NMPlatformLink *plink) { NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); const char *udi; @@ -1836,7 +1836,7 @@ check_carrier (NMDevice *self) } static void -setup_start (NMDevice *self, NMPlatformLink *plink) +setup_start (NMDevice *self, const NMPlatformLink *plink) { NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); static guint32 id = 0; @@ -1943,7 +1943,7 @@ setup_start (NMDevice *self, NMPlatformLink *plink) } static void -setup_finish (NMDevice *self, NMPlatformLink *plink) +setup_finish (NMDevice *self, const NMPlatformLink *plink) { if (plink) { update_device_from_platform_link (self, plink); @@ -1952,7 +1952,7 @@ setup_finish (NMDevice *self, NMPlatformLink *plink) } void -nm_device_setup_finish (NMDevice *self, NMPlatformLink *plink) +nm_device_setup_finish (NMDevice *self, const NMPlatformLink *plink) { g_return_if_fail (!plink || link_type_compatible (self, plink->type, NULL, NULL)); |