This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: fix declaration of fhandler_socket::socketpair
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 16 Feb 2018 16:38:06 -0000
- Subject: [newlib-cygwin] Cygwin: fix declaration of fhandler_socket::socketpair
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ea543d3ffa129dd4976aa19d47cf6c8f7ce09a11
commit ea543d3ffa129dd4976aa19d47cf6c8f7ce09a11
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Feb 16 17:34:57 2018 +0100
Cygwin: fix declaration of fhandler_socket::socketpair
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index c24304b..ab6fb6e 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -588,8 +588,8 @@ class fhandler_socket: public fhandler_base
int getsockname (struct sockaddr *name, int *namelen);
int getpeername (struct sockaddr *name, int *namelen);
int getpeereid (pid_t *pid, uid_t *euid, gid_t *egid);
- socketpair (int af, int type, int protocol, int flags,
- fhandler_socket *fh_out);
+ int socketpair (int af, int type, int protocol, int flags,
+ fhandler_socket *fh_out);
int open (int flags, mode_t mode = 0);
void __reg3 read (void *ptr, size_t& len);