summaryrefslogtreecommitdiff
path: root/libc/misc/search
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 20:23:09 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 20:23:09 +0200
commit5c9c0dd546159019fd753aa0806a8d55200cff11 (patch)
tree2438abb7c6355e0b7d5a54e553cfd0b034534899 /libc/misc/search
parentbf705da4ac2df55e75026fd4bb4843c5bc7668fb (diff)
hcreate_r: silence warning in helper func
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/search')
-rw-r--r--libc/misc/search/_hsearch_r.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/misc/search/_hsearch_r.c b/libc/misc/search/_hsearch_r.c
index aef12e61b..bfe3efed5 100644
--- a/libc/misc/search/_hsearch_r.c
+++ b/libc/misc/search/_hsearch_r.c
@@ -49,12 +49,12 @@ _ENTRY;
static int isprime (unsigned int number)
{
/* no even number will be passed */
- unsigned int div = 3;
+ unsigned int divisor = 3;
- while (div * div < number && number % div != 0)
- div += 2;
+ while (divisor * divisor < number && number % divisor != 0)
+ divisor += 2;
- return number % div != 0;
+ return number % divisor != 0;
}