From b1faf9042c5104d7dafc7d880817def934086ddb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 23 Aug 2020 12:19:20 +0200 Subject: How did this work before?! I used r->eax instead of r->ebx in malloc :O --- kernel/features/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/features/fs.c') diff --git a/kernel/features/fs.c b/kernel/features/fs.c index c328f04..f23ccc0 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -70,7 +70,7 @@ void *read_inode(struct inode *in) int indirect; - int blocknum = 0; + int blocknum; char *data; for (int i = 0; i < num_blocks; i++) { if (i < 12) { @@ -168,7 +168,7 @@ void ls_root() struct dirent *d = (struct dirent *)buf; int sum = 0; - int calc = 0; + int calc; printf("\nRoot directory:\n"); do { calc = (sizeof(struct dirent) + d->name_len + 4) & ~0x3; -- cgit v1.2.3