projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added preliminary Symbian support.
[silc.git]
/
lib
/
silcutil
/
tests
/
test_silchashtable.c
diff --git
a/lib/silcutil/tests/test_silchashtable.c
b/lib/silcutil/tests/test_silchashtable.c
index 21b3fca3364c2da61ea6b337d02c9de1b8e57045..622fc4536647868c726adb791e0799f938224734 100644
(file)
--- a/
lib/silcutil/tests/test_silchashtable.c
+++ b/
lib/silcutil/tests/test_silchashtable.c
@@
-49,7
+49,7
@@
SilcBool add_entries()
e = silc_calloc(1, sizeof(*e));
if (!e)
return FALSE;
e = silc_calloc(1, sizeof(*e));
if (!e)
return FALSE;
- snprintf(e->name, sizeof(e->name), "%d", i);
+ s
ilc_s
nprintf(e->name, sizeof(e->name), "%d", i);
e->val = i;
silc_hash_table_add(t, (void *)e, (void *)e->name);
e->val = i;
silc_hash_table_add(t, (void *)e, (void *)e->name);
@@
-99,7
+99,7
@@
SilcBool del_n_entries_foreach()
for (i = 0; i < count; i++) {
memset(&f, 0, sizeof(f));
for (i = 0; i < count; i++) {
memset(&f, 0, sizeof(f));
- snprintf(f.name, sizeof(f.name), "%d", i);
+ s
ilc_s
nprintf(f.name, sizeof(f.name), "%d", i);
f.val = i;
silc_hash_table_find_foreach(t, &f, del_foreach, NULL);
f.val = i;
silc_hash_table_find_foreach(t, &f, del_foreach, NULL);
@@
-169,7
+169,7
@@
SilcBool find_entries()
for (i = 0; i < count; i++) {
memset(&f, 0, sizeof(f));
for (i = 0; i < count; i++) {
memset(&f, 0, sizeof(f));
- snprintf(f.name, sizeof(f.name), "%d", i);
+ s
ilc_s
nprintf(f.name, sizeof(f.name), "%d", i);
f.val = i;
/* Find */
f.val = i;
/* Find */