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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user