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'.
This commit is contained in:
Corinna Vinschen
2001-01-09 16:00:58 +00:00
parent 077ec4cb37
commit 55ae1dff87
3 changed files with 10 additions and 4 deletions

View 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;