diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-02 03:50:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-02 03:50:11 +0000 |
commit | 05726ddd86c1421add510d5e8395cf7e3ac378f3 (patch) | |
tree | e7a339d3b7773fee264eb134e3acfb1ca87877f2 /winsup/cygwin/pinfo.cc | |
parent | b9b1b38358983f564e48ced1a9a599698e1be36f (diff) | |
download | cygnal-05726ddd86c1421add510d5e8395cf7e3ac378f3.tar.gz cygnal-05726ddd86c1421add510d5e8395cf7e3ac378f3.tar.bz2 cygnal-05726ddd86c1421add510d5e8395cf7e3ac378f3.zip |
white space and minor comment cleanup.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 33576e887..9a819ec39 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -114,7 +114,7 @@ pinfo::maybe_set_exit_code_from_windows () if (hProcess && !(self->exitcode & EXITCODE_SET)) { WaitForSingleObject (hProcess, INFINITE); // just to be safe, in case - // process hasn't quite exited + // process hasn't quite exited // after closing pipe GetExitCodeProcess (hProcess, &x); self->exitcode = EXITCODE_SET | (x & 0xff) << 8; @@ -467,7 +467,7 @@ _pinfo::commune_recv () } case PICOM_CWD: { - CloseHandle (__fromthem); __fromthem = NULL; + CloseHandle (__fromthem); __fromthem = NULL; CloseHandle (hp); unsigned int n = strlen (cygheap->cwd.get (path, 1, 1, CYG_MAX_PATH)) + 1; @@ -479,7 +479,7 @@ _pinfo::commune_recv () } case PICOM_ROOT: { - CloseHandle (__fromthem); __fromthem = NULL; + CloseHandle (__fromthem); __fromthem = NULL; CloseHandle (hp); unsigned int n; if (cygheap->root.exists ()) @@ -494,7 +494,7 @@ _pinfo::commune_recv () } case PICOM_FDS: { - CloseHandle (__fromthem); __fromthem = NULL; + CloseHandle (__fromthem); __fromthem = NULL; CloseHandle (hp); unsigned int n = 0; int fd; @@ -511,7 +511,7 @@ _pinfo::commune_recv () sigproc_printf ("WriteFile fd %d failed, %E", fd); break; } - break; + break; } case PICOM_PIPE_FHANDLER: { @@ -563,7 +563,7 @@ _pinfo::commune_recv () sigproc_printf ("WriteFile sizeof fd failed, %E"); else if (!WriteFile (__tothem, path, n, &nr, NULL)) sigproc_printf ("WriteFile fd failed, %E"); - break; + break; } case PICOM_FIFO: { @@ -729,9 +729,9 @@ _pinfo::commune_send (DWORD code, ...) goto err; } if (!n) - res.s = NULL; + res.s = NULL; else - { + { res.s = (char *) malloc (n); char *p; for (p = res.s; ReadFile (fromthem, p, n, &nr, NULL); p += nr) @@ -741,7 +741,7 @@ _pinfo::commune_send (DWORD code, ...) __seterrno (); goto err; } - } + } res.n = n; break; case PICOM_FIFO: |