summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-06-06 03:12:48 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-06-06 03:12:48 +0000
commit002d4c6aae0d2f3f4f9c0e7d550e3466ebec4230 (patch)
treee9ab8514a0d00cdac87d28c2aeaa32eb77b88a9c /locks
parent0e0e8da310dbd1273e6c0644ec0cde1a548db96d (diff)
downloadlibapr-002d4c6aae0d2f3f4f9c0e7d550e3466ebec4230.tar.gz
Style cleanup: switch statement opening braces belong on the same line.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/os2/locks.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/locks/os2/locks.c b/locks/os2/locks.c
index cebf45887..808ffba95 100644
--- a/locks/os2/locks.c
+++ b/locks/os2/locks.c
@@ -139,8 +139,7 @@ apr_status_t apr_lock_acquire(apr_lock_t *lock)
{
ULONG rc;
- switch (lock->type)
- {
+ switch (lock->type) {
case APR_MUTEX:
rc = DosRequestMutexSem(lock->hMutex, SEM_INDEFINITE_WAIT);
@@ -158,13 +157,11 @@ apr_status_t apr_lock_acquire(apr_lock_t *lock)
apr_status_t apr_lock_acquire_rw(apr_lock_t *lock, apr_readerwriter_e e)
{
- switch (lock->type)
- {
+ switch (lock->type) {
case APR_MUTEX:
return APR_ENOTIMPL;
case APR_READWRITE:
- switch (e)
- {
+ switch (e) {
case APR_READER:
break;
case APR_WRITER:
@@ -179,8 +176,7 @@ apr_status_t apr_lock_release(apr_lock_t *lock)
{
ULONG rc;
- switch (lock->type)
- {
+ switch (lock->type) {
case APR_MUTEX:
if (lock->owner == CurrentTid && lock->lock_count > 0) {
lock->lock_count--;
@@ -202,8 +198,7 @@ apr_status_t apr_lock_destroy(apr_lock_t *lock)
ULONG rc;
apr_status_t stat = APR_SUCCESS;
- switch (lock->type)
- {
+ switch (lock->type) {
case APR_MUTEX:
if (lock->owner == CurrentTid) {
while (lock->lock_count > 0 && stat == APR_SUCCESS)