changeset 3073:43b06e6f2ab0

(is_prime): Return explicit boolean values. (hash_get_first): Return NULL to appease Irix5.6's 89.
author Jim Meyering <jim@meyering.net>
date Sun, 24 Dec 2000 07:12:21 +0000
parents 29771f52981b
children 592c215e74b9
files lib/hash.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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