diff options
Diffstat (limited to 'linuxthreads/sysdeps/pthread/timer_getoverr.c')
-rw-r--r-- | linuxthreads/sysdeps/pthread/timer_getoverr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_getoverr.c b/linuxthreads/sysdeps/pthread/timer_getoverr.c index f3aee45e8d..8630f57829 100644 --- a/linuxthreads/sysdeps/pthread/timer_getoverr.c +++ b/linuxthreads/sysdeps/pthread/timer_getoverr.c @@ -29,16 +29,15 @@ int timer_getoverrun (timerid) timer_t timerid; { + struct timer_node *timer; int retval = -1; pthread_mutex_lock (&__timer_mutex); - if (timer_id2ptr (timerid) == NULL) + if ((timer = timer_id2ptr (timerid)) == NULL || !timer->inuse) errno = EINVAL; else - { - retval = 0; /* TODO: overrun counting not supported */ - } + retval = 0; /* TODO: overrun counting not supported */ pthread_mutex_lock (&__timer_mutex); |