From: Jim Meyering Date: Wed, 17 Mar 1999 14:07:34 +0000 (+0000) Subject: (is_prime): Return bool rather than int. X-Git-Tag: cvs-readonly~7428 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=b6044c6ab01d1b8131d6310f6341b4bf1d052a75;p=gnulib.git (is_prime): Return bool rather than int. --- 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;