changeset 1744:60bb074a9bcb

(is_prime): Return bool rather than int.
author Jim Meyering <jim@meyering.net>
date Wed, 17 Mar 1999 14:07:34 +0000
parents d3b8540577e0
children 188a70851e61
files lib/hash.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -402,7 +402,7 @@
 /* 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;