summaryrefslogtreecommitdiff
path: root/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'errno.c')
-rw-r--r--errno.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/errno.c b/errno.c
index 7f3cf4e..99fe106 100644
--- a/errno.c
+++ b/errno.c
@@ -40,7 +40,7 @@
#include "pthread.h"
#include "implement.h"
-static int reallyBad = ENOMEM;
+static int reallyBad = ENOMEM;
/*
* Re-entrant errno.
@@ -68,12 +68,13 @@ static int reallyBad = ENOMEM;
*
*/
-int * _errno( void )
+int *
+_errno (void)
{
- pthread_t self;
- int *result;
+ pthread_t self;
+ int *result;
- if( ( self = pthread_self() ) == NULL )
+ if ((self = pthread_self ()) == NULL)
{
/*
* Yikes! unable to allocate a thread!
@@ -86,9 +87,8 @@ int * _errno( void )
result = &(self->ptErrno);
}
- return( result );
+ return (result);
-} /* _errno */
+} /* _errno */
#endif /* (NEED_ERRNO) */
-