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/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 6fe4ae2d8f..839c37b102 100644 --- a/lib/command.c +++ b/lib/command.c @@ -337,7 +337,7 @@ static unsigned int cmd_hash_key(void *p) return jhash(p, size, 0); } -static int cmd_hash_cmp(const void *a, const void *b) +static bool cmd_hash_cmp(const void *a, const void *b) { return a == b; } -- cgit v1.2.3