From 771465fed0cf50ee2dd790723245fc091699c324 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 17 May 2004 01:38:02 +0000 Subject: re-indentation, bug fixes, hooks for pre-emptive async cancelation --- errno.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'errno.c') 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) */ - -- cgit v1.2.3