Index: uspace/lib/c/generic/thread.c
===================================================================
--- uspace/lib/c/generic/thread.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/lib/c/generic/thread.c	(revision 4e17d54b4419e0e016292f66bc09bd15538510a1)
@@ -105,5 +105,5 @@
  * @return Zero on success or a code from @ref errno.h on failure.
  */
-int thread_create(void (* function)(void *), void *arg, const char *name,
+errno_t thread_create(void (* function)(void *), void *arg, const char *name,
     thread_id_t *tid)
 {
@@ -132,5 +132,5 @@
 	uarg->uspace_uarg = uarg;
 	
-	int rc = (int) __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg,
+	errno_t rc = (errno_t) __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg,
 	    (sysarg_t) name, (sysarg_t) str_size(name), (sysarg_t) tid);
 	
@@ -178,5 +178,5 @@
  * @return Thread exit status.
  */
-int thread_join(thread_id_t thread)
+errno_t thread_join(thread_id_t thread)
 {
 	return 0;
