From patchwork Tue Jun 20 22:15:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1797595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=lOJC3TZh; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qm1Vl547Zz20Wk for ; Wed, 21 Jun 2023 08:28:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 251703858425 for ; Tue, 20 Jun 2023 22:28:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 251703858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687300088; bh=sgXry4SW9A2gWjYJGm1TOgSdPgh87tah9EW8dVsaqko=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=lOJC3TZh4wcBK5hCQz9NJIag/+0W/UmKViaXGUVT9q7ZWkExyHWoch2FpB6mIwjeS uLrPkTe3ePqPNTJWhTrVqRNxy4VfDgqrTS4f+Z77O8WeJf/yz//jTkVbHeUEX+Cdre S8sO0m7Bm4eCxtuZ7UWgNPMXrNOVtzPM5u/OAKtg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) by sourceware.org (Postfix) with ESMTPS id 79FDA3858D1E for ; Tue, 20 Jun 2023 22:27:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79FDA3858D1E Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-55b8f1c930eso3354896eaf.3 for ; Tue, 20 Jun 2023 15:27:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687300072; x=1689892072; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sgXry4SW9A2gWjYJGm1TOgSdPgh87tah9EW8dVsaqko=; b=X4bF7RF+aJA8gL5J+gsaefUy7Ja5KdegW1zcGvqCpNd1Rs+7iL3NJgklVpsxYioTPh TxP1lCN0X/uYdaHMiKhvmccX5rqcHninS84XagPiVDpYEUG8UV3hWZwOGcuCR1XL5YkK s0aA88x0c5/vLaMiHBDEYZsFOVEn6iClRDUbi3fw9ZiDov5YhnmpFx3D4grIXgu0sxJh KemgQ/mdFxHFI84cTPlJDGAnfud32DfG3++AnuuknO97OxMqUVrE5JoM0qdM4GN5tsTy 75mh1wjZd4/hKfbtSLycroa2hQGTuxNziZ4SmQhv4N/bssM3cndctrWKI1Y0VjUqMfxX t++w== X-Gm-Message-State: AC+VfDx06oCAH5jrhpKrUBRS6IT6fOIATlsU0ZlIczD4YoQyEJMWMLJj 8UtLYeFRCVGP5SJ+edbsawnLoeqTnvtdwQ== X-Google-Smtp-Source: ACHHUZ4eVlvxZXL72fgC34/Y/qrBU+8mx2+LbEjh/15rubRz9O3rWNyPdiEZU6bTIrPxUV8gLaBkTw== X-Received: by 2002:a05:6808:138f:b0:3a0:330e:ea98 with SMTP id c15-20020a056808138f00b003a0330eea98mr5406277oiw.23.1687300072486; Tue, 20 Jun 2023 15:27:52 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id q7-20020acaf207000000b003982a8a1e3fsm1624342oih.51.2023.06.20.15.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 15:27:51 -0700 (PDT) X-Google-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 1/5] catgets: Replace zero-length array name_ptr with C99 flexible-array. Date: Tue, 20 Jun 2023 22:15:19 +0000 Message-ID: <20230620222743.13900-1-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" --- catgets/catgetsinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Adhemerval Zanella diff --git a/catgets/catgetsinfo.h b/catgets/catgetsinfo.h index 4252e4361c..32a79a0234 100644 --- a/catgets/catgetsinfo.h +++ b/catgets/catgetsinfo.h @@ -25,7 +25,7 @@ struct catalog_obj uint32_t plane_depth; /* This is in fact two arrays in one: always a pair of name and pointer into the data area. */ - uint32_t name_ptr[0]; + uint32_t name_ptr[]; };