From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbE8Q-0003uF-Ho for qemu-devel@nongnu.org; Tue, 10 Apr 2007 07:03:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbE8O-0003sF-PF for qemu-devel@nongnu.org; Tue, 10 Apr 2007 07:03:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbE8O-0003rt-Cf for qemu-devel@nongnu.org; Tue, 10 Apr 2007 07:03:36 -0400 Received: from mail.shareable.org ([81.29.64.88]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HbE4S-0002dr-FI for qemu-devel@nongnu.org; Tue, 10 Apr 2007 06:59:32 -0400 Date: Tue, 10 Apr 2007 11:59:22 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [patch] use socklen_t with getsockopt() Message-ID: <20070410105922.GC2235@mail.shareable.org> References: <343495.72027.qm@web25708.mail.ukl.yahoo.com> <20070405104220.GA27936@mail.shareable.org> <200704061751.28458.vapier@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200704061751.28458.vapier@gentoo.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Frysinger Cc: Sylvain Petreolle , qemu-devel@nongnu.org Mike Frysinger wrote: > On Thursday 05 April 2007, Jamie Lokier wrote: > > Sylvain Petreolle wrote: > > > Was incorrect before too, since it was sizeof(int) in the first place ? > > > > The old type of "val" was "int", so it made no different to the size. > > When "val" is of type socklen_t, it matters. > > val is still of type int which is fine ... socklen_t is for the variable which > describes the length of val Yes, thanks for pointing it out. -- Jamie