diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-31 16:17:42 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-31 16:17:42 -0700 |
commit | c9a2aaf516ece95878e039c05bb333bac52a3cd8 (patch) | |
tree | d0a8a21585c0a34d031d13666dc63a99f79c5380 /bgpd/bgp_aspath.h | |
parent | de451b80ce76bd339c85a39cd815d720bf562003 (diff) | |
download | quagga-c9a2aaf516ece95878e039c05bb333bac52a3cd8.tar.bz2 quagga-c9a2aaf516ece95878e039c05bb333bac52a3cd8.tar.xz |
Make hash compare functions take const args
The hash compare function should not be modifiying its args
Diffstat (limited to 'bgpd/bgp_aspath.h')
-rw-r--r-- | bgpd/bgp_aspath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.h b/bgpd/bgp_aspath.h index d8b41fa9..2b4625c8 100644 --- a/bgpd/bgp_aspath.h +++ b/bgpd/bgp_aspath.h @@ -72,8 +72,8 @@ extern struct aspath *aspath_prepend (struct aspath *, struct aspath *); extern struct aspath *aspath_filter_exclude (struct aspath *, struct aspath *); extern struct aspath *aspath_add_seq (struct aspath *, as_t); extern struct aspath *aspath_add_confed_seq (struct aspath *, as_t); -extern int aspath_cmp_left (struct aspath *, struct aspath *); -extern int aspath_cmp_left_confed (struct aspath *, struct aspath *); +extern int aspath_cmp_left (const struct aspath *, const struct aspath *); +extern int aspath_cmp_left_confed (const struct aspath *, const struct aspath *); extern struct aspath *aspath_delete_confed_seq (struct aspath *); extern struct aspath *aspath_empty (void); extern struct aspath *aspath_empty_get (void); |