From be5073a74591e8a9708219dac0da7217c0800ba2 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 24 Apr 2012 13:03:23 -0700 Subject: [PATCH] userprog: use typedef'd thrd_start_t --- userprog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userprog.c b/userprog.c index c90ad1e..4b106d8 100644 --- a/userprog.c +++ b/userprog.c @@ -26,8 +26,8 @@ void user_main() atomic_int obj; printf("Creating 2 threads\n"); - thrd_create(&t1, (void (*)())&a, &obj); - thrd_create(&t2, (void (*)())&a, &obj); + thrd_create(&t1, (thrd_start_t)&a, &obj); + thrd_create(&t2, (thrd_start_t)&a, &obj); thrd_join(t1); thrd_join(t2); -- 2.34.1