summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-31 16:17:42 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-31 16:17:42 -0700
commitc9a2aaf516ece95878e039c05bb333bac52a3cd8 (patch)
treed0a8a21585c0a34d031d13666dc63a99f79c5380 /bgpd/bgp_aspath.h
parentde451b80ce76bd339c85a39cd815d720bf562003 (diff)
downloadquagga-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.h4
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);