[newlib-cygwin] Fix formatting in pinfo.cc

Corinna Vinschen corinna@sourceware.org
Tue Jan 10 15:38:00 GMT 2017


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=171046da733f1f5cdbbf51319f45816e2315dfc7

commit 171046da733f1f5cdbbf51319f45816e2315dfc7
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Jan 10 16:38:01 2017 +0100

    Fix formatting in pinfo.cc
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/pinfo.cc | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index a88b6d0..e43082d 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -653,9 +653,9 @@ commune_process (void *arg)
 	else if (!WritePipeOverlapped (tothem, path, n, &nr, 1000L))
 	  sigproc_printf ("WritePipeOverlapped fd failed, %E");
 	break;
-	  }
-	case PICOM_ENVIRON:
-	  {
+      }
+    case PICOM_ENVIRON:
+      {
 	sigproc_printf ("processing PICOM_ENVIRON");
 	unsigned n = 0;
 	char **env = cur_environ ();
@@ -667,12 +667,13 @@ commune_process (void *arg)
 	  for (char **e = env; *e; e++)
 	    if (!WritePipeOverlapped (tothem, *e, strlen (*e) + 1, &nr, 1000L))
 	      {
-	        sigproc_printf ("WritePipeOverlapped arg %d failed, %E", e - env);
+	        sigproc_printf ("WritePipeOverlapped arg %d failed, %E",
+				e - env);
 	        break;
 	      }
 	break;
-	  }
-	}
+      }
+    }
   if (process_sync)
     {
       DWORD res = WaitForSingleObject (process_sync, 5000);
@@ -1056,7 +1057,7 @@ _pinfo::environ (size_t& n)
     env = cur_environ ();
 
   if (env == NULL)
-      return NULL;
+    return NULL;
 
   n = 0;
   for (char **e = env; *e; e++)



More information about the Cygwin-cvs mailing list