aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 17:56:59 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 17:56:59 +0100
commit002a1b035e2464c11b17f1bfd3835deccef7652a (patch)
tree640baf35dce60566a8f14eec54212af848e5ad71 /src/kernel/core
parentf2c51bc81d2aa618b29ddbeaae5ac1c5308821f0 (diff)
downloadkogata-002a1b035e2464c11b17f1bfd3835deccef7652a.tar.gz
kogata-002a1b035e2464c11b17f1bfd3835deccef7652a.zip
Change readme, remove unused code, changed hashtbl to add key freeing function.
Diffstat (limited to 'src/kernel/core')
-rw-r--r--src/kernel/core/kmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c
index 2169b7d..6024b77 100644
--- a/src/kernel/core/kmain.c
+++ b/src/kernel/core/kmain.c
@@ -104,7 +104,7 @@ void kmalloc_test(void* kernel_data_end) {
void test_hashtbl_1() {
// hashtable test
- hashtbl_t *ht = create_hashtbl(str_key_eq_fun, str_hash_fun, 0);
+ hashtbl_t *ht = create_hashtbl(str_key_eq_fun, str_hash_fun, 0, 0);
hashtbl_add(ht, "test1", "Hello, world [test1]");
hashtbl_add(ht, "test2", "Hello, world [test2]");
dbg_printf("ht[test1] = %s\n", hashtbl_find(ht, "test1"));
@@ -124,7 +124,7 @@ void test_hashtbl_1() {
}
void test_hashtbl_2() {
- hashtbl_t *ht = create_hashtbl(id_key_eq_fun, id_hash_fun, 0);
+ hashtbl_t *ht = create_hashtbl(id_key_eq_fun, id_hash_fun, 0, 0);
hashtbl_add(ht, (void*)12, "Hello, world [12]");
hashtbl_add(ht, (void*)777, "Hello, world [777]");
dbg_printf("ht[12] = %s\n", hashtbl_find(ht, (void*)12));