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/fhandler_socket.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/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 7c7e2daf8..37111f18f 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -104,8 +104,8 @@ get_inet_addr (const struct sockaddr *in, int inlen, *outlen = sizeof sin; if (type) *type = (ctype == 's' ? SOCK_STREAM : - ctype == 'd' ? SOCK_DGRAM - : 0); + ctype == 'd' ? SOCK_DGRAM + : 0); ret = 1; } CloseHandle (fh); @@ -217,7 +217,7 @@ fhandler_socket::af_local_recv_secret (void) debug_printf ("Received af_local secret: %08x-%08x-%08x-%08x", out[0], out[1], out[2], out[3]); if (out[0] != connect_secret[0] || out[1] != connect_secret[1] - || out[2] != connect_secret[2] || out[3] != connect_secret[3]) + || out[2] != connect_secret[2] || out[3] != connect_secret[3]) { debug_printf ("Receiving af_local secret mismatch"); return false; @@ -463,7 +463,7 @@ fhandler_socket::dup (fhandler_base *child) { fhs->set_sun_path (get_sun_path ()); if (get_socket_type () == SOCK_STREAM) - { + { fhs->sec_pid = sec_pid; fhs->sec_uid = sec_uid; fhs->sec_gid = sec_gid; @@ -524,7 +524,7 @@ fhandler_socket::fstat (struct __stat64 *buf) { res = fhandler_base::fstat_fs (buf); if (!res) - { + { buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK; } } @@ -800,7 +800,7 @@ fhandler_socket::accept (struct sockaddr *peer, int *len) { sock->set_sun_path (get_sun_path ()); if (get_socket_type () == SOCK_STREAM) - { + { /* Don't forget to copy credentials from accepting socket to accepted socket and start transaction on accepted socket! */ @@ -812,7 +812,7 @@ fhandler_socket::accept (struct sockaddr *peer, int *len) set_winsock_errno (); goto out; } - } + } } sock->connect_state (connected); res = res_fd; @@ -1652,7 +1652,7 @@ fhandler_socket::getpeereid (pid_t *pid, __uid32_t *euid, __gid32_t *egid) if (sec_peer_pid == (pid_t) 0) { set_errno (ENOTCONN); /* Usually when calling getpeereid on - accepting (instead of accepted) socket. */ + accepting (instead of accepted) socket. */ return -1; } |