(is_prime): Return bool rather than int.
authorJim Meyering <jim@meyering.net>
Wed, 17 Mar 1999 14:07:34 +0000 (14:07 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 17 Mar 1999 14:07:34 +0000 (14:07 +0000)
lib/hash.c

index 70ec009..e26d0d0 100644 (file)
@@ -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;