diff options
Diffstat (limited to 'lib/libpthread/thread/thr_seterrno.c')
-rw-r--r-- | lib/libpthread/thread/thr_seterrno.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_seterrno.c b/lib/libpthread/thread/thr_seterrno.c index c4fe08b6..570807f 100644 --- a/lib/libpthread/thread/thr_seterrno.c +++ b/lib/libpthread/thread/thr_seterrno.c @@ -47,15 +47,14 @@ void _thread_seterrno(pthread_t thread, int error) { /* Check for the initial thread: */ - if (thread == _thread_initial) { + if (thread == _thread_initial) /* The initial thread always uses the global error variable: */ errno = error; - } else { + else /* * Threads other than the initial thread always use the error * field in the thread structureL */ thread->error = error; - } } #endif |