diff options
author | Marvin Borner | 2021-02-16 22:33:42 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-16 22:33:42 +0100 |
commit | 392b0ff1fcc52c189f131c71ea2a969d1b8c5690 (patch) | |
tree | 22cc9e27c09cb9887ca6972e07602070cda25451 /kernel/features | |
parent | 1287f9dfe987f0456e4fb0741385d5f0278ef53b (diff) |
Okay!
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index fdf509c..74fa5d4 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -341,7 +341,7 @@ s32 procfs_read(const char *path, void *buf, u32 offset, u32 count, struct devic return count; } else if (!memcmp(path, "msg", 4)) { if (stack_empty(p->messages)) { - return 0; // This shouldn't happen + return -1; // This shouldn't happen } else { u8 *msg = stack_pop(p->messages); if (!msg) |