diff options
author | Marvin Borner | 2020-08-23 12:19:20 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-23 12:19:20 +0200 |
commit | b1faf9042c5104d7dafc7d880817def934086ddb (patch) | |
tree | 4abe87a6d83aaad17eebd291f2fe046e6a1324a6 /kernel/features/fs.c | |
parent | b667ea0fbd26af222f828199e7b9a7e62ad98081 (diff) |
How did this work before?!
I used r->eax instead of r->ebx in malloc :O
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r-- | kernel/features/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |