public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Cristian Rodríguez" <judas.iscariote@gmail.com>
To: libc-alpha@sourceware.org
Cc: "Cristian Rodríguez" <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	[thread overview]
Message-ID: <20230620222743.13900-1-cristian@rodriguez.im> (raw)

---
 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[];
 };
 
 
-- 
2.41.0


             reply	other threads:[~2023-06-20 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20 22:15 Cristian Rodríguez [this message]
2023-06-21 12:59 ` Adhemerval Zanella Netto
2023-06-21 15:51   ` Cristian Rodríguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230620222743.13900-1-cristian@rodriguez.im \
    --to=judas.iscariote@gmail.com \
    --cc=cristian@rodriguez.im \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).