diff options
Diffstat (limited to 'cpukit/posix/src/pthreadonce.c')
-rw-r--r-- | cpukit/posix/src/pthreadonce.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/posix/src/pthreadonce.c b/cpukit/posix/src/pthreadonce.c index dc8a449a87..c92acf8642 100644 --- a/cpukit/posix/src/pthreadonce.c +++ b/cpukit/posix/src/pthreadonce.c @@ -33,8 +33,5 @@ int pthread_once( if ( !once_control || !init_routine ) return EINVAL; - if ( once_control->is_initialized != 1 ) - return EINVAL; - - return _Once( &once_control->init_executed, init_routine ); + return _Once( &once_control->_flags, init_routine ); } |