From cfa27bcfdd08dba0ab51a691070be58c65234a73 Mon Sep 17 00:00:00 2001 From: omah03 <omah03@mi.fu-berlin.de> Date: Sat, 6 May 2023 16:16:34 +0000 Subject: [PATCH] changed pointer name --- cars_1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cars_1.c b/cars_1.c index 6c73374..63d500f 100644 --- a/cars_1.c +++ b/cars_1.c @@ -9,8 +9,8 @@ #define crosses 100000 int car_on_bridge = 0; -void* func(void* arg){ - int car_id = *(int*)arg; +void* func(void* ptr){ + int car_id = *(int*)ptr; int crosses_counter = 0; while (crosses_counter < crosses){ while (car_on_bridge == 1){ -- GitLab