projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e39a93
)
updates.
author
Pekka Riikonen
<priikone@silcnet.org>
Fri, 18 May 2001 13:27:52 +0000
(13:27 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Fri, 18 May 2001 13:27:52 +0000
(13:27 +0000)
lib/silccore/idcache.c
patch
|
blob
|
history
diff --git
a/lib/silccore/idcache.c
b/lib/silccore/idcache.c
index 6c307d2a419633f23f2529aa72fcfdf9a3a11a1a..7e6aa02b7d02881a026e3e7e045e7a799425d184 100644
(file)
--- a/
lib/silccore/idcache.c
+++ b/
lib/silccore/idcache.c
@@
-165,7
+165,7
@@
bool silc_idcache_add(SilcIDCache cache, unsigned char *data,
silc_hash_table_add(cache->context_table, context, c);
/* See whether we have time to rehash the tables */
- if ((silc_hash_table_count(cache->id_table)
*
2) >
+ if ((silc_hash_table_count(cache->id_table)
/
2) >
silc_hash_table_size(cache->id_table)) {
silc_hash_table_rehash(cache->id_table, 0);
silc_hash_table_rehash(cache->data_table, 0);