aboutsummaryrefslogtreecommitdiff
path: root/libc/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stack.c')
-rw-r--r--libc/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stack.c b/libc/stack.c
index 0941e29..e86a8c6 100644
--- a/libc/stack.c
+++ b/libc/stack.c
@@ -6,7 +6,7 @@
static int nonce = 0;
-struct stack *stack_new()
+struct stack *stack_new(void)
{
struct stack *stack = malloc(sizeof(*stack));
stack->tail = NULL;
@@ -29,7 +29,7 @@ void stack_destroy(struct stack *stack)
stack = NULL;
}
-static struct stack_node *stack_new_node()
+static struct stack_node *stack_new_node(void)
{
struct stack_node *node = malloc(sizeof(*node));
node->data = NULL;