From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19993 invoked by alias); 1 May 2013 02:44:49 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 19975 invoked by uid 89); 1 May 2013 02:44:49 -0000 X-Spam-SWARE-Status: No, score=-7.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 01 May 2013 02:44:49 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r412il5n020259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Apr 2013 22:44:47 -0400 Received: from [10.3.113.84] (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r412ikpx029749; Tue, 30 Apr 2013 22:44:46 -0400 Message-ID: <5180819E.4030908@redhat.com> Date: Wed, 01 May 2013 02:44:00 -0000 From: "Carlos O'Donell" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: KOSAKI Motohiro CC: libc-alpha@sourceware.org, libc-ports@sourceware.org Subject: Re: [PATCH 5/5] __FDS_BITS: Added cast to __fd_mask* to avoid warning. References: <1365900451-19026-1-git-send-email-kosaki.motohiro@gmail.com> <1365900451-19026-6-git-send-email-kosaki.motohiro@gmail.com> In-Reply-To: <1365900451-19026-6-git-send-email-kosaki.motohiro@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00003.txt.bz2 On 04/13/2013 08:47 PM, KOSAKI Motohiro wrote: > Signed-off-by: KOSAKI Motohiro > --- > ChangeLog | 5 +++++ > misc/sys/select.h | 4 ++-- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/ChangeLog b/ChangeLog > index b154c3c..c027ab8 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -29,6 +29,11 @@ > > 2013-03-25 KOSAKI Motohiro > > + * misc/sys/select.h (__FDS_BITS): Added a cast to > + __fd_mask* to avoid warning. > + > +2013-03-25 KOSAKI Motohiro > + > * debug/tst-chk1.c (do_test): Added tests for fd_set allocation > from heap. > > diff --git a/misc/sys/select.h b/misc/sys/select.h > index 341190c..99d330f 100644 > --- a/misc/sys/select.h > +++ b/misc/sys/select.h > @@ -67,10 +67,10 @@ typedef struct > from the global namespace. */ > #ifdef __USE_XOPEN > __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS]; > -# define __FDS_BITS(set) ((set)->fds_bits) > +# define __FDS_BITS(set) ((__fd_mask*)((set)->fds_bits)) > #else > __fd_mask __fds_bits[__FD_SETSIZE / __NFDBITS]; > -# define __FDS_BITS(set) ((set)->__fds_bits) > +# define __FDS_BITS(set) ((__fd_mask*)((set)->__fds_bits)) > #endif > } fd_set; > > Obviously OK once we get the rest of the patches sorted. Cheers, Carlos.