apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/locks/os2 locks.c
Date Wed, 06 Jun 2001 03:12:49 GMT
bjh         01/06/05 20:12:49

  Modified:    locks/os2 locks.c
  Log:
  Style cleanup: switch statement opening braces belong on the same line.
  
  Revision  Changes    Path
  1.31      +5 -10     apr/locks/os2/locks.c
  
  Index: locks.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/os2/locks.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- locks.c	2001/06/06 03:08:34	1.30
  +++ locks.c	2001/06/06 03:12:48	1.31
  @@ -139,8 +139,7 @@
   {
       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_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 @@
   {
       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 @@
       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)
  
  
  

Mime
View raw message