From c20f1ca1f00b995cb12f1290fb4dedc443ba763c Mon Sep 17 00:00:00 2001 From: bjt-user Date: Wed, 10 Jul 2024 16:50:24 +0200 Subject: [PATCH] renamed function parameter --- src/list_handling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/list_handling.c b/src/list_handling.c index a94919c..5ba85ed 100644 --- a/src/list_handling.c +++ b/src/list_handling.c @@ -46,10 +46,10 @@ void free_list(struct event *head) } } -void print_upcoming(struct event *head, char current_start_date[], int show_all_events) { +void print_upcoming(struct event *head, char current_date[], int show_all_events) { int i = 0; while (head != NULL) { - if (strcmp(head->start_date, current_start_date) >= 0) { + if (strcmp(head->start_date, current_date) >= 0) { pretty_print_date_time(head->start_date); print_end_date(head->end_date, head->start_date); printf("\nSUMMARY: %s\n", head->summary);