diff options
| author | Michael Forney <mforney@mforney.org> | 2020-08-16 17:26:26 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-08-16 17:26:32 -0700 |
| commit | 3d514acfe7cf80ea5dfc189055bb2e7fdf6a2d43 (patch) | |
| tree | c89055a6d20355c7b293f3c68369a8f3ded6ec71 /pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch | |
| parent | 7d88126e0ab869493e784d5b95569646883874a7 (diff) | |
Add pciutils 3.7.0
Diffstat (limited to 'pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch')
| -rw-r--r-- | pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch b/pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch new file mode 100644 index 00000000..cbf06c7e --- /dev/null +++ b/pkg/pciutils/patch/0004-Use-flexible-array-member-instead-of-zero-length-arr.patch @@ -0,0 +1,25 @@ +From 76d023b885150b65ceeee179883fdf97bd9b8012 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Sun, 16 Aug 2020 17:15:34 -0700 +Subject: [PATCH] Use flexible array member instead of zero-length array + +--- + setpci.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setpci.c b/setpci.c +index 90ca726..ead2bb9 100644 +--- a/setpci.c ++++ b/setpci.c +@@ -37,7 +37,7 @@ struct op { + unsigned int width; /* Byte width of the access */ + unsigned int num_values; /* Number of values to write; 0=read */ + unsigned int number; /* The n-th capability of that id */ +- struct value values[0]; ++ struct value values[]; + }; + + struct group { +-- +2.28.0 + |
