From 9e8caf1e06ba7510160305da11a30d91dcfc23e5 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 6 Sep 2024 21:10:21 +0200 Subject: reformat source code --- src/stack-linked-list.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/stack-linked-list.c') diff --git a/src/stack-linked-list.c b/src/stack-linked-list.c index 48b9eba..7c01a1d 100644 --- a/src/stack-linked-list.c +++ b/src/stack-linked-list.c @@ -85,7 +85,7 @@ stack_free(struct stack *stack) /* -->8-- */ int -main() +main(void) { struct stack stack[1]; @@ -96,11 +96,11 @@ main() /* while ( !stack_empty(stack) ) { - int i; - if ( stack_pop(stack, &i) ) - printf("%d\n", i); - else - ERROR("this shouldn't happen!"); + int i; + if ( stack_pop(stack, &i) ) + printf("%d\n", i); + else + ERROR("this shouldn't happen!"); } */ -- cgit v1.3