1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-05-19 08:51:19 +02:00

(is_prime): Return explicit boolean values.

(hash_get_first): Return NULL to appease Irix5.6's 89.
This commit is contained in:
Jim Meyering
2000-12-24 07:12:21 +00:00
parent 6ac10d9b9a
commit 7aa3fb3d47

View File

@@ -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