projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85f25e
)
(is_prime): Return explicit boolean values.
author
Jim Meyering
<jim@meyering.net>
Sun, 24 Dec 2000 07:12:21 +0000
(07:12 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 24 Dec 2000 07:12:21 +0000
(07:12 +0000)
(hash_get_first): Return NULL to appease Irix5.6's 89.
lib/hash.c
patch
|
blob
|
history
diff --git
a/lib/hash.c
b/lib/hash.c
index 8438143a87823a4ff0dd6186cdda98d75263a24c..63af151a242b12195ffd0bf4a09d3cbee8db7f73 100644
(file)
--- a/
lib/hash.c
+++ b/
lib/hash.c
@@
-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