From 71b2adb407c4c06df88dbb0abec923d45ff8da01 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 24 Dec 2000 07:12:21 +0000 Subject: [PATCH] (is_prime): Return explicit boolean values. (hash_get_first): Return NULL to appease Irix5.6's 89. --- lib/hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hash.c b/lib/hash.c index 8438143a8..63af151a2 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -263,6 +263,7 @@ hash_get_first (const Hash_table *table) return bucket->data; assert (0); + return NULL; } /* Return the user data for the entry following ENTRY, where ENTRY has been @@ -422,7 +423,7 @@ is_prime (unsigned long candidate) divisor++; } - return candidate % divisor != 0; + return (candidate % divisor ? true : false) } /* Round a given CANDIDATE number up to the nearest prime, and return that -- 2.11.0