device: add const specifier to nm_ndisc_dad_failed() argument
This commit is contained in:
@@ -11541,7 +11541,7 @@ queued_ip6_config_change (gpointer user_data)
|
|||||||
&& nm_platform_link_get (nm_device_get_platform (self), priv->ifindex)) {
|
&& nm_platform_link_get (nm_device_get_platform (self), priv->ifindex)) {
|
||||||
/* Handle DAD failures */
|
/* Handle DAD failures */
|
||||||
for (iter = priv->dad6_failed_addrs; iter; iter = g_slist_next (iter)) {
|
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)
|
if (addr->addr_source >= NM_IP_CONFIG_SOURCE_USER)
|
||||||
continue;
|
continue;
|
||||||
@@ -11594,14 +11594,14 @@ static void
|
|||||||
device_ipx_changed (NMPlatform *platform,
|
device_ipx_changed (NMPlatform *platform,
|
||||||
int obj_type_i,
|
int obj_type_i,
|
||||||
int ifindex,
|
int ifindex,
|
||||||
gpointer platform_object,
|
gconstpointer platform_object,
|
||||||
int change_type_i,
|
int change_type_i,
|
||||||
NMDevice *self)
|
NMDevice *self)
|
||||||
{
|
{
|
||||||
const NMPObjectType obj_type = obj_type_i;
|
const NMPObjectType obj_type = obj_type_i;
|
||||||
const NMPlatformSignalChangeType change_type = change_type_i;
|
const NMPlatformSignalChangeType change_type = change_type_i;
|
||||||
NMDevicePrivate *priv;
|
NMDevicePrivate *priv;
|
||||||
NMPlatformIP6Address *addr;
|
const NMPlatformIP6Address *addr;
|
||||||
|
|
||||||
if (nm_device_get_ip_ifindex (self) != ifindex)
|
if (nm_device_get_ip_ifindex (self) != ifindex)
|
||||||
return;
|
return;
|
||||||
|
@@ -792,7 +792,7 @@ nm_ndisc_start (NMNDisc *ndisc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
nm_ndisc_dad_failed (NMNDisc *ndisc, struct in6_addr *address)
|
nm_ndisc_dad_failed (NMNDisc *ndisc, const struct in6_addr *address)
|
||||||
{
|
{
|
||||||
NMNDiscDataInternal *rdata;
|
NMNDiscDataInternal *rdata;
|
||||||
guint i;
|
guint i;
|
||||||
|
@@ -174,7 +174,7 @@ NMNDiscNodeType nm_ndisc_get_node_type (NMNDisc *self);
|
|||||||
|
|
||||||
gboolean nm_ndisc_set_iid (NMNDisc *ndisc, const NMUtilsIPv6IfaceId iid);
|
gboolean nm_ndisc_set_iid (NMNDisc *ndisc, const NMUtilsIPv6IfaceId iid);
|
||||||
void nm_ndisc_start (NMNDisc *ndisc);
|
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,
|
void nm_ndisc_set_config (NMNDisc *ndisc,
|
||||||
const GArray *addresses,
|
const GArray *addresses,
|
||||||
const GArray *dns_servers,
|
const GArray *dns_servers,
|
||||||
|
Reference in New Issue
Block a user