logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-Use-flexible-array-member-instead-of-zero-length-arr.patch (706B)


  1. From 76d023b885150b65ceeee179883fdf97bd9b8012 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 16 Aug 2020 17:15:34 -0700
  4. Subject: [PATCH] Use flexible array member instead of zero-length array
  5. ---
  6. setpci.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/setpci.c b/setpci.c
  9. index 90ca726..ead2bb9 100644
  10. --- a/setpci.c
  11. +++ b/setpci.c
  12. @@ -37,7 +37,7 @@ struct op {
  13. unsigned int width; /* Byte width of the access */
  14. unsigned int num_values; /* Number of values to write; 0=read */
  15. unsigned int number; /* The n-th capability of that id */
  16. - struct value values[0];
  17. + struct value values[];
  18. };
  19. struct group {
  20. --
  21. 2.28.0