[haiku-commits] haiku: hrev44997 - src/system/libroot/posix

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 11 Dec 2012 23:24:02 +0100 (CET)

hrev44997 adds 1 changeset to branch 'master'
old head: 3cdae65125db9d867f328391d69970197e4b9556
new head: f1a3e05d8c26328f345d29afb705dc828b631bf3
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=f1a3e05+%5E3cdae65

----------------------------------------------------------------------------

f1a3e05: style fix as suggested by axeld and jscipione.

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44997
Commit:      f1a3e05d8c26328f345d29afb705dc828b631bf3
URL:         http://cgit.haiku-os.org/haiku/commit/?id=f1a3e05
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Tue Dec 11 22:21:45 2012 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/system/libroot/posix/semaphore.cpp | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/system/libroot/posix/semaphore.cpp 
b/src/system/libroot/posix/semaphore.cpp
index fb57ced..33cb768 100644
--- a/src/system/libroot/posix/semaphore.cpp
+++ b/src/system/libroot/posix/semaphore.cpp
@@ -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;


Other related posts:

  • » [haiku-commits] haiku: hrev44997 - src/system/libroot/posix - korli