style fix as suggested by axeld and jscipione.
This commit is contained in:
parent
3cdae65125
commit
f1a3e05d8c
@ -112,8 +112,8 @@ sem_post(sem_t* semaphore)
|
||||
int
|
||||
sem_timedwait(sem_t* semaphore, const struct timespec* timeout)
|
||||
{
|
||||
if (timeout != NULL && (timeout->tv_nsec < 0 ||
|
||||
timeout->tv_nsec >= 1000000000)) {
|
||||
if (timeout != NULL
|
||||
&& (timeout->tv_nsec < 0 || timeout->tv_nsec >= 1000000000)) {
|
||||
status_t err = _kern_realtime_sem_wait(semaphore->id, 0);
|
||||
if (err == B_WOULD_BLOCK)
|
||||
err = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user