projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
640b121
)
Fixed list initializations.
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 10 Dec 2006 16:09:48 +0000
(16:09 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 10 Dec 2006 16:09:48 +0000
(16:09 +0000)
lib/silcapputil/silcidcache.c
patch
|
blob
|
history
diff --git
a/lib/silcapputil/silcidcache.c
b/lib/silcapputil/silcidcache.c
index c0824b2cd5a373bd759f47a92f812a2ba5f9abd8..68c0f8af01e1ba95a8df84adaee8d9bdee1e516e 100644
(file)
--- a/
lib/silcapputil/silcidcache.c
+++ b/
lib/silcapputil/silcidcache.c
@@
-281,6
+281,7
@@
SilcBool silc_idcache_get_all(SilcIDCache cache, SilcList *ret_list)
if (!silc_hash_table_count(cache->id_table))
return FALSE;
if (!silc_hash_table_count(cache->id_table))
return FALSE;
+ silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next);
silc_hash_table_foreach(cache->id_table, silc_idcache_get_all_foreach,
ret_list);
silc_hash_table_foreach(cache->id_table, silc_idcache_get_all_foreach,
ret_list);
@@
-301,6
+302,7
@@
SilcBool silc_idcache_find_by_id(SilcIDCache cache, void *id,
if (!silc_hash_table_count(cache->id_table))
return FALSE;
if (!silc_hash_table_count(cache->id_table))
return FALSE;
+ silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next);
silc_hash_table_find_foreach(cache->id_table, id,
silc_idcache_get_all_foreach, ret_list);
silc_hash_table_find_foreach(cache->id_table, id,
silc_idcache_get_all_foreach, ret_list);
@@
-341,6
+343,7
@@
SilcBool silc_idcache_find_by_name(SilcIDCache cache, char *name,
if (!silc_hash_table_count(cache->name_table))
return FALSE;
if (!silc_hash_table_count(cache->name_table))
return FALSE;
+ silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next);
silc_hash_table_find_foreach(cache->name_table, name,
silc_idcache_get_all_foreach, ret_list);
silc_hash_table_find_foreach(cache->name_table, name,
silc_idcache_get_all_foreach, ret_list);