From 2bd0c8f5983e954b25ad9b603229e84d675946b8 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 11 May 2024 14:53:25 +0200 Subject: readme --- cs_linkedlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cs_linkedlist.c') diff --git a/cs_linkedlist.c b/cs_linkedlist.c index 657aeb8..1361ad0 100644 --- a/cs_linkedlist.c +++ b/cs_linkedlist.c @@ -13,7 +13,7 @@ struct waster { struct waster *next; }; -struct waster *newnode () { +struct waster *newnode (void) { struct waster *new = malloc(sizeof(struct waster)); return new; @@ -50,7 +50,7 @@ void freellist(struct waster *wr1) { } } -int main () { +int main (void) { uint64_t passes = 4; // 1 pass = the whole linked list. So 4 passes would be to print the linked list 4 times. uint64_t passstep = 1; // counter to compare to passes -- cgit v1.2.3