From 1450f0a91bf3168ffc812b9d12e0a3aec6aee160 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Tue, 4 Mar 2025 18:49:31 +0100 Subject: [PATCH] fix c compilator warning --- module00/ex04/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module00/ex04/main.c b/module00/ex04/main.c index fbc27fd..3a743fb 100644 --- a/module00/ex04/main.c +++ b/module00/ex04/main.c @@ -44,12 +44,14 @@ void decrement_int(IncrementParams *params) { *value = (*value <= min) ? min : --(*value); } -void increment_led(IncrementParams *params) { +void increment_led(void *param) { + IncrementParams *params = (IncrementParams *)param; increment_int(params); print_binary(*(params->value)); } -void decrement_led(IncrementParams *params) { +void decrement_led(void *param) { + IncrementParams *params = (IncrementParams *)param; decrement_int(params); print_binary(*(params->value)); }