diff options
author | Peter Foley <pefoley2@pefoley.com> | 2016-03-21 20:15:44 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-21 22:16:01 +0300 |
commit | 6699e21ffb4f0beeeec6a5d26cfd5684c26ecb42 (patch) | |
tree | bcb2a66d44fe526429546bb87b2e8e925db63f4a /winsup | |
parent | 08537d88f625658222ecc63ccf633ed4278b7b3b (diff) |
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.
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygserver/sysv_msg.cc | 6 | ||||
-rw-r--r-- | winsup/cygserver/sysv_sem.cc | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygserver/sysv_msg.cc b/winsup/cygserver/sysv_msg.cc index 217cc1d97..9e90d05a9 100644 --- a/winsup/cygserver/sysv_msg.cc +++ b/winsup/cygserver/sysv_msg.cc @@ -733,7 +733,8 @@ msgsnd(struct thread *td, struct msgsnd_args *uap) if (error != 0) { DPRINTF(("msgsnd: interrupted system call\n")); #ifdef __CYGWIN__ - if (error != EIDRM) + if (error == EIDRM) + goto done2; #endif /* __CYGWIN__ */ error = EINTR; goto done2; @@ -1089,7 +1090,8 @@ msgrcv(struct thread *td, struct msgrcv_args *uap) if (error != 0) { DPRINTF(("msgrcv: interrupted system call\n")); #ifdef __CYGWIN__ - if (error != EIDRM) + if (error == EIDRM) + goto done2; #endif /* __CYGWIN__ */ error = EINTR; goto done2; diff --git a/winsup/cygserver/sysv_sem.cc b/winsup/cygserver/sysv_sem.cc index e7ba48b61..349322c6d 100644 --- a/winsup/cygserver/sysv_sem.cc +++ b/winsup/cygserver/sysv_sem.cc @@ -1177,7 +1177,8 @@ semop(struct thread *td, struct semop_args *uap) */ if (error != 0) { #ifdef __CYGWIN__ - if (error != EIDRM) + if (error == EIDRM) + goto done2; #endif /* __CYGWIN__ */ error = EINTR; goto done2; |