diff options
author | Marvin Borner | 2021-02-09 21:48:59 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-09 21:54:24 +0100 |
commit | 58b4e00736c0f2f13a3e96b5fcb3c00623ed35be (patch) | |
tree | 2286b0c26d6706f8da46f8c3d31ff3761fcfca15 /libc/stack.c | |
parent | 59894afa1bc0f4efc85917710adf2e93d7e17a5e (diff) |
Quite many message queue fixes and impl start
Diffstat (limited to 'libc/stack.c')
-rw-r--r-- | libc/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stack.c b/libc/stack.c index c47dd59..cd5a2aa 100644 --- a/libc/stack.c +++ b/libc/stack.c @@ -115,7 +115,7 @@ void *stack_peek(struct stack *stack) if (!stack || !stack->tail) return NULL; - return stack->tail; + return stack->tail->data; } void stack_clear(struct stack *stack) |