From patchwork Wed Dec 16 13:51:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 41463 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D65B3383F865; Wed, 16 Dec 2020 13:51:40 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 2EEE73840C3D for ; Wed, 16 Dec 2020 13:51:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2EEE73840C3D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3D399E1D; Wed, 16 Dec 2020 14:51:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3H9nX6JmCAxD; Wed, 16 Dec 2020 14:51:37 +0100 (CET) Received: from function.youpi.perso.aquilenet.fr (unknown [IPv6:2a01:cb19:956:1b00:9eb6:d0ff:fe88:c3c7]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 64A68B5E; Wed, 16 Dec 2020 14:51:37 +0100 (CET) Received: from samy by function.youpi.perso.aquilenet.fr with local (Exim 4.94) (envelope-from ) id 1kpXDL-000yX7-Dj; Wed, 16 Dec 2020 14:51:35 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited] {nptl,htl}/semaphoreP.h: clean up Date: Wed, 16 Dec 2020 14:51:35 +0100 Message-Id: <20201216135135.232646-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This removes "Contributed by", and uses a C99 flexible array instead of char name[0]; --- htl/semaphoreP.h | 4 ++-- nptl/semaphoreP.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htl/semaphoreP.h b/htl/semaphoreP.h index 22732122b0..8d8d9d8897 100644 --- a/htl/semaphoreP.h +++ b/htl/semaphoreP.h @@ -1,6 +1,6 @@ /* Copyright (C) 2002-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 2002. + Ulrich Drepper , 2002. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -28,7 +28,7 @@ struct inuse_sem ino_t ino; int refcnt; sem_t *sem; - char name[0]; + char name[]; }; diff --git a/nptl/semaphoreP.h b/nptl/semaphoreP.h index 2f8757e1f0..8d67e41cf3 100644 --- a/nptl/semaphoreP.h +++ b/nptl/semaphoreP.h @@ -1,6 +1,6 @@ /* Copyright (C) 2002-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 2002. + Ulrich Drepper , 2002. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -29,7 +29,7 @@ struct inuse_sem ino_t ino; int refcnt; sem_t *sem; - char name[0]; + char name[]; };