diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 03:56:03 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 12:33:13 +0100 |
commit | 1a4189d4a1d2170f2fc3929b4e422e9c3b75a60a (patch) | |
tree | 62807bdcfbe5c8ee681fdeb623b5fe02aeab414e /bgpd/rfapi/rfapi_rib.c | |
parent | bgpd: Make bgp_debug_bestpath take a `struct bgp_node` (diff) | |
download | frr-1a4189d4a1d2170f2fc3929b4e422e9c3b75a60a.tar.xz frr-1a4189d4a1d2170f2fc3929b4e422e9c3b75a60a.zip |
bgpd, isisd, lib: Make key values const for skiplist
Make some key values const for the skiplist code.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/rfapi/rfapi_rib.c')
-rw-r--r-- | bgpd/rfapi/rfapi_rib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/rfapi/rfapi_rib.c b/bgpd/rfapi/rfapi_rib.c index 3d4bdef75..141fb03d3 100644 --- a/bgpd/rfapi/rfapi_rib.c +++ b/bgpd/rfapi/rfapi_rib.c @@ -388,10 +388,10 @@ extern void rfapi_rib_key_init(struct prefix *prefix, /* may be NULL */ /* * Compares two <struct rfapi_rib_key>s */ -int rfapi_rib_key_cmp(void *k1, void *k2) +int rfapi_rib_key_cmp(const void *k1, const void *k2) { - struct rfapi_rib_key *a = (struct rfapi_rib_key *)k1; - struct rfapi_rib_key *b = (struct rfapi_rib_key *)k2; + const struct rfapi_rib_key *a = (struct rfapi_rib_key *)k1; + const struct rfapi_rib_key *b = (struct rfapi_rib_key *)k2; int ret; if (!a || !b) |