X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fhash.c;h=802a34ed4c803bf8d7095e5d76489e3a2501bea5;hb=702f288a1c0d2053385edfe9a47ed0e184a9f1fe;hp=8438143a87823a4ff0dd6186cdda98d75263a24c;hpb=a0a18dea24b6f4b749fed67f7c74649bcdbee199;p=gnulib.git diff --git a/lib/hash.c b/lib/hash.c index 8438143a8..802a34ed4 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -1,5 +1,5 @@ /* hash - hashing table processing. - Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Written by Jim Meyering, 1992. This program is free software; you can redistribute it and/or modify @@ -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