]> git.proxmox.com Git - mirror_frr.git/commit
[lib] hash compare function arguments ought to be const qualified
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 14 Aug 2008 15:25:25 +0000 (16:25 +0100)
committerPaul Jakma <paul@quagga.net>
Fri, 22 Aug 2008 18:52:58 +0000 (19:52 +0100)
commitffe11cfb0a808ae514193438616dfabc512b4cf6
tree94452dba2c1a49d6e6a0782c6513acb36823cefc
parent9fd4958a4eef88c536e4a5aeefce302e10ee8ee6
[lib] hash compare function arguments ought to be const qualified

2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com>

* lib/hash.h: (struct hash) Hash comparator callback really
  ought to treat storage behind arguments as constant - a compare
  function with side-effects would be evil.
* */*.c: Adjust comparator functions similarly, thus fixing at least
  a few compiler warnings about const qualifier being dropped.

Signed-off-by: Paul Jakma <paul@quagga.net>
13 files changed:
bgpd/bgp_advertise.c
bgpd/bgp_aspath.c
bgpd/bgp_aspath.h
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_community.c
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
lib/distribute.c
lib/hash.c
lib/hash.h
lib/if_rmap.c
lib/thread.c