summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-09-17 18:22:59 +0200
committerF. Aragon <paco@voltanet.io>2018-09-17 19:38:59 +0200
commit36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6 (patch)
tree25f225b816fd7547224d54744b3631d2aa36620b /isisd
parentMerge pull request #3007 from pacovn/static_analysis__shadow_variables2 (diff)
downloadfrr-36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6.tar.xz
frr-36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6.zip
bgpd isisd ldpd lib: const drop fixes (SA)
Can be detected with e.g. ./configure CFLAGS=-Wcast-qual CC=clang Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_redist.c6
-rw-r--r--isisd/isis_spf_private.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c
index ab7584ed3..6564149a4 100644
--- a/isisd/isis_redist.c
+++ b/isisd/isis_redist.c
@@ -171,8 +171,7 @@ static void isis_redist_update_ext_reach(struct isis_area *area, int level,
if (redist->map_name) {
map_ret =
- route_map_apply(redist->map, (struct prefix *)p,
- RMAP_ISIS, &area_info);
+ route_map_apply(redist->map, p, RMAP_ISIS, &area_info);
if (map_ret == RMAP_DENYMATCH)
area_info.distance = 255;
}
@@ -441,7 +440,8 @@ static void isis_redist_set(struct isis_area *area, int level, int family,
}
isis_redist_update_ext_reach(area, level, redist, p,
- (struct prefix_ipv6 *)src_p, info);
+ (const struct prefix_ipv6 *)src_p,
+ info);
}
}
diff --git a/isisd/isis_spf_private.h b/isisd/isis_spf_private.h
index af552e0ed..19e129ba9 100644
--- a/isisd/isis_spf_private.h
+++ b/isisd/isis_spf_private.h
@@ -106,8 +106,8 @@ static int isis_vertex_queue_hash_cmp(const void *a, const void *b)
if (prefix_cmp(&va->N.ip.dest, &vb->N.ip.dest))
return 0;
- return prefix_cmp((struct prefix *)&va->N.ip.src,
- (struct prefix *)&vb->N.ip.src) == 0;
+ return prefix_cmp((const struct prefix *)&va->N.ip.src,
+ (const struct prefix *)&vb->N.ip.src) == 0;
}
return memcmp(va->N.id, vb->N.id, ISIS_SYS_ID_LEN + 1) == 0;