OSDN Git Service

Patch suggested by René Møller Fonseca <fonseca@mip.sdu.dk>
authorcorinna <corinna>
Tue, 9 Jan 2001 16:00:58 +0000 (16:00 +0000)
committercorinna <corinna>
Tue, 9 Jan 2001 16:00:58 +0000 (16:00 +0000)
        * include/sys/socket.h: Change prototype to have 2nd parameter `const'.
        * net.cc (cygwin_bind): Change 2nd parameter to `const'.

winsup/cygwin/ChangeLog
winsup/cygwin/include/sys/socket.h
winsup/cygwin/net.cc

index 6f9f69d..a405dab 100644 (file)
@@ -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.
index a13b556..70ec1fb 100644 (file)
@@ -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 *);
index 65a68be..5603a21 100644 (file)
@@ -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;