From patchwork Sat Sep 2 23:51:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 809177 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84128-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="CC+q4Dv+"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xlCYj2cjhz9sRW for ; Sun, 3 Sep 2017 09:51:21 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=jXbylHCpxd+ei5qhSkZrIZsUIro5Ox/uVYq0fBlo31x0Yn6xg5MG8 gNljhR+8thfurb94T3ndK856HAk1ZjqSorJyGrkkxTtTw7GB0KnU8MeDen/5wOUU hY2jZU612EvlDwR4lWd+ROxr4A4grlKtM6Ek2I3fts61c2lGCs5+PM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=cpTDdawS05ml3iuQixAir/I2PbM=; b=CC+q4Dv+a6fPfuK50LxHvKfNuiUx KtaFLpCUJyJrbh/lRb0iCdZTrkqs6XP48SGB6T4pR0Dkrb+qE6WVjL9ID1vcFFl+ lPuVhFTNk/eN2Z7/gAXeOtTmGi/iClg2T0+pN+u33GpSflPdkDwNN63KcpGXAKbq gqS/4vcDhI7TUaw= Received: (qmail 107139 invoked by alias); 2 Sep 2017 23:51:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 107125 invoked by uid 89); 2 Sep 2017 23:51:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL, UNWANTED_LANGUAGE_BODY, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix sigsetops.h macros Date: Sun, 3 Sep 2017 01:51:06 +0200 Message-Id: <20170902235106.26351-1-samuel.thibault@ens-lyon.org> * sysdeps/generic/sigsetops.h: Remove spurious #endif. (__sigismember, __sigaddset, __sigdelset): Fix referencing set parameter. --- ChangeLog | 2 ++ sysdeps/generic/sigsetops.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba48df083d..912a3ce4b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2017-09-03 Samuel Thibault * sysdeps/generic/sigsetops.h: Remove spurious #endif. + (__sigismember, __sigaddset, __sigdelset): Fix referencing set + parameter. 2017-09-01 Joseph Myers diff --git a/sysdeps/generic/sigsetops.h b/sysdeps/generic/sigsetops.h index ea2c5b5767..6d1c004b04 100644 --- a/sysdeps/generic/sigsetops.h +++ b/sysdeps/generic/sigsetops.h @@ -56,20 +56,20 @@ # define __sigismember(set, sig) \ (__extension__ ({ \ __sigset_t __mask = __sigmask (sig); \ - (set) & __mask ? 1 : 0; \ + *(set) & __mask ? 1 : 0; \ })) # define __sigaddset(set, sig) \ (__extension__ ({ \ __sigset_t __mask = __sigmask (sig); \ - (set) |= __mask; \ + *(set) |= __mask; \ (void)0; \ })) # define __sigdelset(set, sig) \ (__extension__ ({ \ __sigset_t __mask = __sigmask (sig); \ - (set) &= ~__mask; \ + *(set) &= ~__mask; \ (void)0; \ }))