summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_seterrno.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-04-29 09:59:34 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-04-29 09:59:34 +0000
commit4a027d50c7f3f30178a89b3159ba9e4b44f06885 (patch)
treeb7a4ea836e97e11d436f9a6657ea6a9ec8036c33 /lib/libpthread/thread/thr_seterrno.c
parentccf47cfcedf9f3db1780bc3b52ca0adb4480d3f6 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_seterrno.c')
-rw-r--r--lib/libpthread/thread/thr_seterrno.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_seterrno.c b/lib/libpthread/thread/thr_seterrno.c
index c4fe08b6cc36..570807f1fc7e 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