diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-24 07:12:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-24 07:12:21 +0000 |
commit | 7aa3fb3d47a8e97e45530e5069dbf4ce0b2e1bf9 (patch) | |
tree | 4998571777731c775a8cb0c79c2c604f7ef6650e | |
parent | 6ac10d9b9abc0afb5ae03e0f4e9d3409d90caf7b (diff) | |
download | coreutils-7aa3fb3d47a8e97e45530e5069dbf4ce0b2e1bf9.tar.xz |
(is_prime): Return explicit boolean values.
(hash_get_first): Return NULL to appease Irix5.6's 89.
-rw-r--r-- | lib/hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |