This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: prototype of bind in sys/socket.h
- To: cygwin at cygwin dot com
- Subject: Re: prototype of bind in sys/socket.h
- From: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Tue, 9 Jan 2001 16:43:29 +0100
- References: <3A5B23FC.59E103E4@mip.sdu.dk>
On Tue, Jan 09, 2001 at 03:45:16PM +0100, René Møller Fonseca wrote:
> Hi,
>
> The prototype of bind in /usr/include/sys/socket.h is:
> int bind (int, struct sockaddr *__my_addr, int __addrlen);
>
> Without knowing what the standard exactly suggests, I think this should
> have been:
> int bind (int, const struct sockaddr *__my_addr, int __addrlen);
>
> bind is not allowed to modify the socket address! The operating systems,
> that I have checked, use const in the prototype of bind.
You're right. Thanks for the hint. I will change that.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple