diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-17 15:27:12 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-19 13:14:45 -0400 |
| commit | 74df8d6d9d665784b0273151fe04cd2f9ff5b353 (patch) | |
| tree | 7b0d38ba7c6e9605634d40a64c4b904295d59d80 /bgpd/bgp_pbr.h | |
| parent | 27fa33984bd6276942459a4c68abd15d04a9333e (diff) | |
*: Replace hash_cmp function return value to a bool
The ->hash_cmp and linked list ->cmp functions were sometimes
being used interchangeably and this really is not a good
thing. So let's modify the hash_cmp function pointer to return
a boolean and convert everything to use the new syntax.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_pbr.h')
| -rw-r--r-- | bgpd/bgp_pbr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_pbr.h b/bgpd/bgp_pbr.h index d15cb39c32..84095f9ab9 100644 --- a/bgpd/bgp_pbr.h +++ b/bgpd/bgp_pbr.h @@ -267,13 +267,13 @@ extern void bgp_pbr_cleanup(struct bgp *bgp); extern void bgp_pbr_init(struct bgp *bgp); extern uint32_t bgp_pbr_action_hash_key(void *arg); -extern int bgp_pbr_action_hash_equal(const void *arg1, +extern bool bgp_pbr_action_hash_equal(const void *arg1, const void *arg2); extern uint32_t bgp_pbr_match_entry_hash_key(void *arg); -extern int bgp_pbr_match_entry_hash_equal(const void *arg1, +extern bool bgp_pbr_match_entry_hash_equal(const void *arg1, const void *arg2); extern uint32_t bgp_pbr_match_hash_key(void *arg); -extern int bgp_pbr_match_hash_equal(const void *arg1, +extern bool bgp_pbr_match_hash_equal(const void *arg1, const void *arg2); void bgp_pbr_print_policy_route(struct bgp_pbr_entry_main *api); |
