diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-01-09 19:00:58 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-01-09 19:00:58 +0300 |
commit | 55ae1dff87f3d185545fe9c27d717210fa639c19 (patch) | |
tree | cf3e038461161a69a8e2d4f14399af662a1e0df2 /winsup | |
parent | 077ec4cb37134f2e90dd282ce9c6e496052e35e5 (diff) |
Patch suggested by Ren� M�ller Fonseca <fonseca@mip.sdu.dk>
* include/sys/socket.h: Change prototype to have 2nd parameter `const'.
* net.cc (cygwin_bind): Change 2nd parameter to `const'.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 8 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/socket.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/net.cc | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6f9f69d0a..a405dab97 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 9 16:55:00 2001 Corinna Vinschen <corinna@vinschen.de> + + Patch suggested by René Møller Fonseca <fonseca@mip.sdu.dk> + * include/sys/socket.h: Change prototype to have 2nd parameter `const'. + * net.cc (cygwin_bind): Change 2nd parameter to `const'. + Sun Jan 7 22:59:37 2001 Christopher Faylor <cgf@cygnus.com> * pinfo.cc (codepage_init): Move function. @@ -8,7 +14,7 @@ Sun Jan 7 22:59:37 2001 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (wait_sig): Ditto. * winsup.h: Eliminate global declaration of codepage_init. -Thu Jan 5 9:33:00 2001 Corinna Vinschen <corina@vinschen.de> +Thu Jan 5 9:33:00 2001 Corinna Vinschen <corinna@vinschen.de> * resource.cc (getrlimit): Set errno on EFAULT instead of returning it. diff --git a/winsup/cygwin/include/sys/socket.h b/winsup/cygwin/include/sys/socket.h index a13b55600..70ec1fb27 100644 --- a/winsup/cygwin/include/sys/socket.h +++ b/winsup/cygwin/include/sys/socket.h @@ -17,7 +17,7 @@ extern "C" #ifndef __INSIDE_CYGWIN_NET__ int accept (int, struct sockaddr *__peer, int *); - int bind (int, struct sockaddr *__my_addr, int __addrlen); + int bind (int, const struct sockaddr *__my_addr, int __addrlen); int connect (int, const struct sockaddr *, int); int getpeername (int, struct sockaddr *__peer, int *); int getsockname (int, struct sockaddr *__addr, int *); diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 65a68bedb..5603a215e 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1,6 +1,6 @@ /* net.cc: network-related routines. - Copyright 1996, 1997, 1998, 1999, 2000 Cygnus Solutions. + Copyright 1996, 1997, 1998, 1999, 2000, 2001 Cygnus Solutions. This file is part of Cygwin. @@ -760,7 +760,7 @@ done: /* exported as bind: standards? */ extern "C" int -cygwin_bind (int fd, struct sockaddr *my_addr, int addrlen) +cygwin_bind (int fd, const struct sockaddr *my_addr, int addrlen) { int res = -1; |