summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutextimedlock.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-03 23:10:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-03 23:10:02 +0000
commit1e3940d547237007c0cd201d236ed397e1417a8a (patch)
treec2f0f1609083da46092ae48ac9d36f529c9288fe /cpukit/posix/src/mutextimedlock.c
parentUse versioned gpg keys to work around Fedora 11's rpms having broken backward... (diff)
downloadrtems-1e3940d547237007c0cd201d236ed397e1417a8a.tar.bz2
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c, posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c, posix/src/semopen.c: Silence warnings.
Diffstat (limited to 'cpukit/posix/src/mutextimedlock.c')
-rw-r--r--cpukit/posix/src/mutextimedlock.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/posix/src/mutextimedlock.c b/cpukit/posix/src/mutextimedlock.c
index 0e3e46f37d..7253502a1f 100644
--- a/cpukit/posix/src/mutextimedlock.c
+++ b/cpukit/posix/src/mutextimedlock.c
@@ -64,16 +64,12 @@ int pthread_mutex_timedlock(
do_wait = false;
break;
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
+ default: /* only to silence warnings */
do_wait = true;
break;
}
- lock_status = _POSIX_Mutex_Lock_support(
- mutex,
- do_wait,
- ticks
- );
-
+ lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );
/*
* This service only gives us the option to block. We used a polling
* attempt to lock if the abstime was not in the future. If we did