From 194afffd852cc76597f13132f103c534caa98e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 17 Dec 2016 20:00:47 +0100 Subject: [PATCH] user_thread.h: use struct keyword to be usable in C. --- headers/private/libroot/user_thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headers/private/libroot/user_thread.h b/headers/private/libroot/user_thread.h index 5c234fe6eb..3f1a21083a 100644 --- a/headers/private/libroot/user_thread.h +++ b/headers/private/libroot/user_thread.h @@ -12,10 +12,10 @@ #include -static inline user_thread* +static inline struct user_thread* get_user_thread() { - return (user_thread*)tls_get(TLS_USER_THREAD_SLOT); + return (struct user_thread*)tls_get(TLS_USER_THREAD_SLOT); } @@ -29,7 +29,7 @@ defer_signals() static void inline undefer_signals() { - user_thread* thread = get_user_thread(); + struct user_thread* thread = get_user_thread(); if (--thread->defer_signals == 0 && thread->pending_signals != 0) { // signals shall no longer be deferred -- call a dummy syscall to handle // the pending ones