From 188b41ff9e4ab16672a7e26c5e432144dcedd5ea Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sat, 19 Oct 2019 19:02:43 -0400 Subject: [PATCH] Updated threadCreate() usage in the misc examples for latest libnx. --- misc/barrier/source/main.c | 2 +- misc/user_events/source/main.c | 2 +- misc/user_timers/source/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/barrier/source/main.c b/misc/barrier/source/main.c index c2bf7f1..095de6d 100644 --- a/misc/barrier/source/main.c +++ b/misc/barrier/source/main.c @@ -47,7 +47,7 @@ int main(int argc, char **argv) u64 i; for (i=0; i<4; i++) { num_threads = i; - rc = threadCreate(&thread[i], threadFunc, (void*)i, 0x10000, 0x2C, -2); + rc = threadCreate(&thread[i], threadFunc, (void*)i, NULL, 0x10000, 0x2C, -2); if (R_FAILED(rc)) goto clean_up; } diff --git a/misc/user_events/source/main.c b/misc/user_events/source/main.c index 93d47b9..cc07c5a 100644 --- a/misc/user_events/source/main.c +++ b/misc/user_events/source/main.c @@ -62,7 +62,7 @@ int main(int argc, char **argv) Thread thread; Result rc; - rc = threadCreate(&thread, threadFunc1, NULL, 0x10000, 0x2C, -2); + rc = threadCreate(&thread, threadFunc1, NULL, NULL, 0x10000, 0x2C, -2); if (R_SUCCEEDED(rc)) { diff --git a/misc/user_timers/source/main.c b/misc/user_timers/source/main.c index 4165197..3db3108 100644 --- a/misc/user_timers/source/main.c +++ b/misc/user_timers/source/main.c @@ -59,7 +59,7 @@ int main(int argc, char **argv) Thread thread; Result rc; - rc = threadCreate(&thread, threadFunc1, NULL, 0x10000, 0x2C, -2); + rc = threadCreate(&thread, threadFunc1, NULL, NULL, 0x10000, 0x2C, -2); if (R_SUCCEEDED(rc)) {