Message ID | 20230620222743.13900-1-cristian@rodriguez.im (mailing list archive) |
---|---|
State | Accepted |
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> 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 6DD433858C60 for <patchwork@sourceware.org>; Tue, 20 Jun 2023 22:28:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DD433858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687300095; bh=sgXry4SW9A2gWjYJGm1TOgSdPgh87tah9EW8dVsaqko=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Mgmk2p8+8ajnFZ8Y537JN7YA+m+OeKOa88sNQobjrKq2i+KvvcM0wVEp9bWlJL/Ei K6+Fh2+/Eg2HulEc8DSSHtQvthbytfxs6lxI3XbfagMSB7RVnZLYqOMmj0Su5IdVuA n5kfBcc5lkXsh8EKG6JsPLOnM8q5x6YVPa89h024= 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 <libc-alpha@sourceware.org>; 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 <libc-alpha@sourceware.org>; 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?= <cristian@rodriguez.im> To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= <cristian@rodriguez.im> 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 Content-Transfer-Encoding: 8bit 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= <libc-alpha@sourceware.org> Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= <judas.iscariote@gmail.com> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
[1/5] catgets: Replace zero-length array name_ptr with C99 flexible-array.
|
|
Commit Message
Cristian Rodríguez
June 20, 2023, 10:15 p.m. UTC
--- catgets/catgetsinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
LGTM, thanks. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> On 20/06/23 19:15, Cristian Rodríguez via Libc-alpha wrote: > --- > catgets/catgetsinfo.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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[]; > }; > >
I have a series of patches. Git send email is annoying me right now.. but I'll post first the parts that only change internal structures. Then either grandfather-in the ones using [1] or change them in a backward compatible way. Cheers El mié, 21 de jun. de 2023 08:59, Adhemerval Zanella Netto < adhemerval.zanella@linaro.org> escribió: > LGTM, thanks. > > Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > > On 20/06/23 19:15, Cristian Rodríguez via Libc-alpha wrote: > > --- > > catgets/catgetsinfo.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > 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[]; > > }; > > > > >
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[]; };