summaryrefslogtreecommitdiff
path: root/errno.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /errno.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
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) */
-