From 92511be884438488ba9fe047bc542b526a54a8e7 Mon Sep 17 00:00:00 2001 From: James Benton Date: Thu, 7 Jan 2016 04:47:36 -0800 Subject: [PATCH] Fix thread entry point to use int as return and argc type. --- include/coreinit/thread.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/coreinit/thread.h b/include/coreinit/thread.h index 4b91d3e..3bc9fa7 100644 --- a/include/coreinit/thread.h +++ b/include/coreinit/thread.h @@ -17,7 +17,7 @@ typedef uint8_t OSThreadState; typedef uint32_t OSThreadRequest; typedef uint8_t OSThreadAttributes; -typedef int32_t (*OSThreadEntryPointFn)(int32_t argc, char *arv); +typedef int (*OSThreadEntryPointFn)(int argc, const char **argv); typedef void (*OSThreadCleanupCallbackFn)(OSThread *thread, void *stack); typedef void (*OSThreadDeallocatorFn)(OSThread *thread, void *stack); @@ -254,7 +254,7 @@ OSIsThreadTerminated(OSThread *thread); BOOL OSJoinThread(OSThread *thread, - int32_t *threadResult); + int *threadResult); void OSPrintCurrentThreadState(); @@ -265,8 +265,8 @@ OSResumeThread(OSThread *thread); BOOL OSRunThread(OSThread *thread, OSThreadEntryPointFn entry, - int32_t argc, - char *argv); + int argc, + const char **argv); BOOL OSSetThreadAffinity(OSThread *thread,