From efe10908766d96974c008a6a8f124916fdca7a14 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 15 Apr 2024 23:47:25 +0200 Subject: Kernel: Improve "out of memory" error handling It can now boot with fairly low memory while not crashing and instead gracefully failing the operation. Userland still does not properly handle errors. --- kernel/lib/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/lib/list.h') diff --git a/kernel/lib/list.h b/kernel/lib/list.h index b1f0127..2d1fa0f 100644 --- a/kernel/lib/list.h +++ b/kernel/lib/list.h @@ -6,7 +6,7 @@ struct list { int tail_index; }; -int list_init(struct list *list); +void list_init(struct list *list); void list_reset(struct list *list); void list_free(struct list *list); int list_clone(struct list *in, struct list *out); -- cgit v1.2.3