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/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/table.c') diff --git a/lib/table.c b/lib/table.c index 3adb793891..0026b7692b 100644 --- a/lib/table.c +++ b/lib/table.c @@ -33,7 +33,7 @@ DEFINE_MTYPE(LIB, ROUTE_NODE, "Route node") static void route_table_free(struct route_table *); -static int route_table_hash_cmp(const void *a, const void *b) +static bool route_table_hash_cmp(const void *a, const void *b) { const struct prefix *pa = a, *pb = b; return prefix_cmp(pa, pb) == 0; -- cgit v1.2.3