This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 04/11] Remove misleading indentation


GCC 6.0+ warns on misleading indentation, so fix it.

winsup/cygserver/ChangeLog
* sysv_msg.cc (msgsnd): Fix misleading indentation.
* sysv_msg.cc (msgrcv): Ditto.
* sysv_sem.cc (semop): Ditto.
winsup/cygwing/ChangeLog
* syscalls.cc (getpriority): Fix misleading indentation.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
 winsup/cygserver/sysv_msg.cc | 4 ++--
 winsup/cygserver/sysv_sem.cc | 2 +-
 winsup/cygwin/syscalls.cc    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/winsup/cygserver/sysv_msg.cc b/winsup/cygserver/sysv_msg.cc
index 217cc1d..fefc750 100644
--- a/winsup/cygserver/sysv_msg.cc
+++ b/winsup/cygserver/sysv_msg.cc
@@ -736,7 +736,7 @@ msgsnd(struct thread *td, struct msgsnd_args *uap)
 			  if (error != EIDRM)
 #endif /* __CYGWIN__ */
 				error = EINTR;
-				goto done2;
+			  goto done2;
 			}
 
 			/*
@@ -1092,7 +1092,7 @@ msgrcv(struct thread *td, struct msgrcv_args *uap)
 		    if (error != EIDRM)
 #endif /* __CYGWIN__ */
 			error = EINTR;
-			goto done2;
+		    goto done2;
 		}
 
 		/*
diff --git a/winsup/cygserver/sysv_sem.cc b/winsup/cygserver/sysv_sem.cc
index e7ba48b..751190a 100644
--- a/winsup/cygserver/sysv_sem.cc
+++ b/winsup/cygserver/sysv_sem.cc
@@ -1180,7 +1180,7 @@ semop(struct thread *td, struct semop_args *uap)
 		    if (error != EIDRM)
 #endif /* __CYGWIN__ */
 			error = EINTR;
-			goto done2;
+		    goto done2;
 		}
 		DPRINTF(("semop:  good morning!\n"));
 	}
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 3dd6af1..15fb8ce 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -3838,7 +3838,7 @@ getpriority (int which, id_t who)
 	  case PRIO_USER:
 	    if ((uid_t) who == p->uid && p->nice < nice)
 	      nice = p->nice;
-	      break;
+	    break;
 	  }
     }
 out:
-- 
2.7.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]