diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-14 11:45:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-14 11:45:11 +0200 |
commit | 2f13288a23da4dfaf6c40e1e943f83d8fa43145a (patch) | |
tree | 3b550ad22a00676470ceb2815afd21f42dfd8aae /src/kernel/core/kmain.c | |
parent | 477911553e0443fcafad5bd96c97314aa2f8d9ea (diff) | |
download | kogata-2f13288a23da4dfaf6c40e1e943f83d8fa43145a.tar.gz kogata-2f13288a23da4dfaf6c40e1e943f83d8fa43145a.zip |
Fix sme warnings...
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r-- | src/kernel/core/kmain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c index 38336a9..d09a1b5 100644 --- a/src/kernel/core/kmain.c +++ b/src/kernel/core/kmain.c @@ -190,6 +190,9 @@ void kernel_init_stage2(void* data) { dbg_printf("Reached kmain end! I'll just stop here and do nothing.\n"); } +void _parse_cmdline_iter(void* a, void* b) { + dbg_printf(" '%s' -> '%s'\n", a, b); +} btree_t *parse_cmdline(const char* x) { btree_t *ret = create_btree(str_key_cmp_fun, free_key_val); ASSERT(ret != 0); @@ -219,10 +222,7 @@ btree_t *parse_cmdline(const char* x) { } } - void iter(void* a, void* b) { - dbg_printf(" '%s' -> '%s'\n", a, b); - } - btree_iter(ret, iter); + btree_iter(ret, _parse_cmdline_iter); return ret; } |