mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 13:00:16 +01:00
device: add const specifier to nm_ndisc_dad_failed() argument
(cherry picked from commit cd6cf0ea36)
This commit is contained in:
parent
b9dace0aa3
commit
2ff8ece27e
3 changed files with 5 additions and 5 deletions
|
|
@ -11357,7 +11357,7 @@ queued_ip6_config_change (gpointer user_data)
|
|||
&& nm_platform_link_get (nm_device_get_platform (self), priv->ifindex)) {
|
||||
/* Handle DAD failures */
|
||||
for (iter = priv->dad6_failed_addrs; iter; iter = g_slist_next (iter)) {
|
||||
NMPlatformIP6Address *addr = iter->data;
|
||||
const NMPlatformIP6Address *addr = iter->data;
|
||||
|
||||
if (addr->addr_source >= NM_IP_CONFIG_SOURCE_USER)
|
||||
continue;
|
||||
|
|
@ -11410,14 +11410,14 @@ static void
|
|||
device_ipx_changed (NMPlatform *platform,
|
||||
int obj_type_i,
|
||||
int ifindex,
|
||||
gpointer platform_object,
|
||||
gconstpointer platform_object,
|
||||
int change_type_i,
|
||||
NMDevice *self)
|
||||
{
|
||||
const NMPObjectType obj_type = obj_type_i;
|
||||
const NMPlatformSignalChangeType change_type = change_type_i;
|
||||
NMDevicePrivate *priv;
|
||||
NMPlatformIP6Address *addr;
|
||||
const NMPlatformIP6Address *addr;
|
||||
|
||||
if (nm_device_get_ip_ifindex (self) != ifindex)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -792,7 +792,7 @@ nm_ndisc_start (NMNDisc *ndisc)
|
|||
}
|
||||
|
||||
void
|
||||
nm_ndisc_dad_failed (NMNDisc *ndisc, struct in6_addr *address)
|
||||
nm_ndisc_dad_failed (NMNDisc *ndisc, const struct in6_addr *address)
|
||||
{
|
||||
NMNDiscDataInternal *rdata;
|
||||
guint i;
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ NMNDiscNodeType nm_ndisc_get_node_type (NMNDisc *self);
|
|||
|
||||
gboolean nm_ndisc_set_iid (NMNDisc *ndisc, const NMUtilsIPv6IfaceId iid);
|
||||
void nm_ndisc_start (NMNDisc *ndisc);
|
||||
void nm_ndisc_dad_failed (NMNDisc *ndisc, struct in6_addr *address);
|
||||
void nm_ndisc_dad_failed (NMNDisc *ndisc, const struct in6_addr *address);
|
||||
void nm_ndisc_set_config (NMNDisc *ndisc,
|
||||
const GArray *addresses,
|
||||
const GArray *dns_servers,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue