Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 9 Jan 2001 16:43:29 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: prototype of bind in sys/socket.h
Message-ID: <20010109164329.B4141@cobold.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <3A5B23FC.59E103E4@mip.sdu.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <3A5B23FC.59E103E4@mip.sdu.dk>; from fonseca@mip.sdu.dk on Tue, Jan 09, 2001 at 03:45:16PM +0100

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

