projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial code commit for Toolkit 1.1.
[silc.git]
/
lib
/
silcutil
/
silcutil.c
diff --git
a/lib/silcutil/silcutil.c
b/lib/silcutil/silcutil.c
index a3746f92ff8bf9f745c731cc17f99bfae5bdfb97..3a6742cd90bc5ef10a83fbf1f0b2d9980806e7f9 100644
(file)
--- a/
lib/silcutil/silcutil.c
+++ b/
lib/silcutil/silcutil.c
@@
-490,7
+490,7
@@
SilcUInt32 silc_hash_utf8_string(void *key, void *user_context)
SilcUInt32 silc_hash_uint(void *key, void *user_context)
{
SilcUInt32 silc_hash_uint(void *key, void *user_context)
{
- return
*(SilcUInt32 *)key
;
+ return
SILC_PTR_TO_32(key)
;
}
/* Basic hash funtion to hash pointers. May be used with the SilcHashTable. */
}
/* Basic hash funtion to hash pointers. May be used with the SilcHashTable. */
@@
-1005,7
+1005,7
@@
bool silc_get_mode_list(SilcBuffer mode_list, SilcUInt32 mode_list_count,
{
int i;
{
int i;
- if (
mode_list->len
/ 4 != mode_list_count)
+ if (
silc_buffer_len(mode_list)
/ 4 != mode_list_count)
return FALSE;
*list = silc_calloc(mode_list_count, sizeof(**list));
return FALSE;
*list = silc_calloc(mode_list_count, sizeof(**list));