projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
lib
/
silccore
/
silcidcache.c
diff --git
a/lib/silccore/silcidcache.c
b/lib/silccore/silcidcache.c
index 5cf2533af07d99bf5fae68e32c14b6a9f43f9952..a28c6833034bc19cc92c0d2073593b1612f6cb94 100644
(file)
--- a/
lib/silccore/silcidcache.c
+++ b/
lib/silccore/silcidcache.c
@@
-87,9
+87,9
@@
struct SilcIDCacheStruct {
struct SilcIDCacheListStruct {
SilcIDCacheEntry cache[64];
SilcIDCacheEntry *cache_dyn;
struct SilcIDCacheListStruct {
SilcIDCacheEntry cache[64];
SilcIDCacheEntry *cache_dyn;
-
ui
nt32 cache_dyn_count;
-
ui
nt32 cache_count;
-
ui
nt32 pos;
+
SilcUI
nt32 cache_dyn_count;
+
SilcUI
nt32 cache_count;
+
SilcUI
nt32 pos;
bool dyn;
};
bool dyn;
};
@@
-98,7
+98,7
@@
struct SilcIDCacheListStruct {
The `id_type' defines the types of the ID's that will be saved to the
cache. */
The `id_type' defines the types of the ID's that will be saved to the
cache. */
-SilcIDCache silc_idcache_alloc(
ui
nt32 count, SilcIdType id_type,
+SilcIDCache silc_idcache_alloc(
SilcUI
nt32 count, SilcIdType id_type,
SilcIDCacheDestructor destructor)
{
SilcIDCache cache;
SilcIDCacheDestructor destructor)
{
SilcIDCache cache;
@@
-107,9
+107,9
@@
SilcIDCache silc_idcache_alloc(uint32 count, SilcIdType id_type,
cache = silc_calloc(1, sizeof(*cache));
cache->id_table = silc_hash_table_alloc(count, silc_hash_id,
cache = silc_calloc(1, sizeof(*cache));
cache->id_table = silc_hash_table_alloc(count, silc_hash_id,
- (void *)(
ui
nt32)id_type,
+ (void *)(
SilcUI
nt32)id_type,
silc_hash_id_compare,
silc_hash_id_compare,
- (void *)(
ui
nt32)id_type,
+ (void *)(
SilcUI
nt32)id_type,
silc_idcache_destructor, NULL,
FALSE);
cache->name_table = silc_hash_table_alloc(count, silc_hash_string, NULL,
silc_idcache_destructor, NULL,
FALSE);
cache->name_table = silc_hash_table_alloc(count, silc_hash_string, NULL,
@@
-296,7
+296,7
@@
static void silc_idcache_purge_foreach(void *key, void *context,
void *user_context)
{
SilcIDCache cache = (SilcIDCache)user_context;
void *user_context)
{
SilcIDCache cache = (SilcIDCache)user_context;
-
ui
nt32 curtime = time(NULL);
+
SilcUI
nt32 curtime = time(NULL);
SilcIDCacheEntry c = (SilcIDCacheEntry)context;
if (c->expire && c->expire < curtime) {
SilcIDCacheEntry c = (SilcIDCacheEntry)context;
if (c->expire && c->expire < curtime) {