From 858f78702424e4c0eb59bf7678e84f7b3a65fde2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 24 Feb 2015 21:17:33 +0100 Subject: Fix calculations in iso9660_fh_read --- src/kernel/core/kmain.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/kernel/core') diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c index c08d749..8242f99 100644 --- a/src/kernel/core/kmain.c +++ b/src/kernel/core/kmain.c @@ -155,22 +155,6 @@ void kernel_init_stage2(void* data) { fs_t *rootfs = 0; if (btree_find(cmdline, "root") != 0) rootfs = setup_rootfs(cmdline, iofs); - if (rootfs != 0) { - fs_handle_t *readme = fs_open(rootfs, "/readme.md", FM_READ); - if (readme != 0) { - char buf[100]; - dbg_printf("Read %d.\n", file_read(readme, 0, 100, buf)); - buf[99] = 0; - dbg_printf("%s\n", buf); - unref_file(readme); - } - } - - void iter(void* a, void* b) { - dbg_printf("'%s': '%s' (0x%p, 0x%p)\n", a, b, a, b); - } - btree_iter(cmdline, iter); - launch_init(cmdline, iofs, rootfs); // We are done here -- cgit v1.2.3