]> git.proxmox.com Git - mirror_frr.git/commit - lib/vrf.c
lib: hashing functions should take const arguments
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 14 May 2019 20:19:07 +0000 (20:19 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 14 May 2019 21:23:08 +0000 (21:23 +0000)
commitd8b87afe7c5fcee9caaef7124d5bcd5f0c3af8a1
treeca07ea6097ec12120806ff4c7bd268b9fc063842
parentab78033d65dfcdbd5d1fe952193fc302b9843724
lib: hashing functions should take const arguments

It doesn't make much sense for a hash function to modify its argument,
so const the hash input.

BGP does it in a couple places, those cast away the const. Not great but
not any worse than it was.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
61 files changed:
bfdd/bfd.c
bgpd/bgp_advertise.c
bgpd/bgp_advertise.h
bgpd/bgp_aspath.c
bgpd/bgp_aspath.h
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_clist.c
bgpd/bgp_community.c
bgpd/bgp_community.h
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
bgpd/bgp_evpn.c
bgpd/bgp_keepalives.c
bgpd/bgp_lcommunity.c
bgpd/bgp_lcommunity.h
bgpd/bgp_mac.c
bgpd/bgp_nexthop.c
bgpd/bgp_pbr.c
bgpd/bgp_pbr.h
bgpd/bgp_updgrp.c
bgpd/bgpd.c
isisd/fabricd.c
isisd/isis_spf_private.h
isisd/isis_tx_queue.c
lib/command.c
lib/distribute.c
lib/ferr.c
lib/hash.c
lib/hash.h
lib/if_rmap.c
lib/northbound.c
lib/routemap.c
lib/thread.c
lib/vrf.c
lib/wheel.c
lib/wheel.h
lib/yang_translator.c
nhrpd/nhrp_cache.c
nhrpd/nhrp_peer.c
nhrpd/nhrp_vc.c
nhrpd/reqid.c
ospfd/ospf_sr.c
pbrd/pbr_nht.c
pimd/pim_ifchannel.c
pimd/pim_ifchannel.h
pimd/pim_igmp.c
pimd/pim_msdp.c
pimd/pim_oil.c
pimd/pim_rpf.c
pimd/pim_rpf.h
pimd/pim_upstream.c
pimd/pim_upstream.h
pimd/pim_vxlan.c
staticd/static_zebra.c
tests/lib/test_srcdest_table.c
tools/coccinelle/hash_const.cocci [new file with mode: 0644]
zebra/zebra_mpls.c
zebra/zebra_pbr.c
zebra/zebra_pbr.h
zebra/zebra_vxlan.c