# HG changeset patch # User Jim Meyering # Date 977641941 0 # Node ID 43b06e6f2ab0340771e61d351186a010665e6d6e # Parent 29771f52981b799ca4094f57de33b7f03d908780 (is_prime): Return explicit boolean values. (hash_get_first): Return NULL to appease Irix5.6's 89. diff --git a/lib/hash.c b/lib/hash.c --- a/lib/hash.c +++ b/lib/hash.c @@ -263,6 +263,7 @@ return bucket->data; assert (0); + return NULL; } /* Return the user data for the entry following ENTRY, where ENTRY has been @@ -422,7 +423,7 @@ divisor++; } - return candidate % divisor != 0; + return (candidate % divisor ? true : false) } /* Round a given CANDIDATE number up to the nearest prime, and return that