diff options
author | Jim Meyering <jim@meyering.net> | 1999-03-17 14:07:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-03-17 14:07:34 +0000 |
commit | 8ee5e50927bccd48917d899a3d143c053202bf25 (patch) | |
tree | 21ca9bdc30cce9e1409207ae2ea22b9eccaa22a2 /lib | |
parent | 3ae2c2ecf0e14d92dfe08dca7043085eb06ffa05 (diff) | |
download | coreutils-8ee5e50927bccd48917d899a3d143c053202bf25.tar.xz |
(is_prime): Return bool rather than int.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hash.c b/lib/hash.c index 70ec0094e..e26d0d047 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -402,7 +402,7 @@ hash_string (const char *string, unsigned n_buckets) /* Return true if CANDIDATE is a prime number. CANDIDATE should be an odd number at least equal to 11. */ -static int +static bool is_prime (unsigned long candidate) { unsigned long divisor = 3; |