From 74df8d6d9d665784b0273151fe04cd2f9ff5b353 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 17 Oct 2018 15:27:12 -0400 Subject: *: 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 --- lib/if_rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/if_rmap.c') diff --git a/lib/if_rmap.c b/lib/if_rmap.c index 2c686ecb85..108ab7ec6b 100644 --- a/lib/if_rmap.c +++ b/lib/if_rmap.c @@ -117,7 +117,7 @@ static unsigned int if_rmap_hash_make(void *data) return string_hash_make(if_rmap->ifname); } -static int if_rmap_hash_cmp(const void *arg1, const void *arg2) +static bool if_rmap_hash_cmp(const void *arg1, const void *arg2) { const struct if_rmap *if_rmap1 = arg1; const struct if_rmap *if_rmap2 = arg2; -- cgit v1.2.3