Blame SOURCES/0022-iscsi_if.h-replace-zero-length-array-with-flexible-a.patch

1a76fd
From 84a8601fe7b9b5337af95835aaa5aae1bfd88d95 Mon Sep 17 00:00:00 2001
1a76fd
From: rpm-build <rpm-build>
1a76fd
Date: Tue, 11 Aug 2020 21:00:29 +0200
1a76fd
Subject: [PATCH] iscsi_if.h replace zero-length array with flexible-array
1a76fd
 member
1a76fd
1a76fd
---
1a76fd
 include/iscsi_if.h | 6 +++---
1a76fd
 1 file changed, 3 insertions(+), 3 deletions(-)
1a76fd
1a76fd
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
1a76fd
index 5a1c614..e8cee0d 100644
1a76fd
--- a/include/iscsi_if.h
1a76fd
+++ b/include/iscsi_if.h
1a76fd
@@ -337,7 +337,7 @@ enum iscsi_param_type {
1a76fd
 struct iscsi_param_info {
1a76fd
 	uint32_t len;		/* Actual length of the param value */
1a76fd
 	uint16_t param;		/* iscsi param */
1a76fd
-	uint8_t value[0];	/* length sized value follows */
1a76fd
+	uint8_t value[];	/* length sized value follows */
1a76fd
 } __attribute__((__packed__));
1a76fd
 
1a76fd
 struct iscsi_iface_param_info {
1a76fd
@@ -346,7 +346,7 @@ struct iscsi_iface_param_info {
1a76fd
 	uint16_t param;		/* iscsi param value */
1a76fd
 	uint8_t iface_type;	/* IPv4 or IPv6 */
1a76fd
 	uint8_t param_type;	/* iscsi_param_type */
1a76fd
-	uint8_t value[0];	/* length sized value follows */
1a76fd
+	uint8_t value[];	/* length sized value follows */
1a76fd
 } __attribute__((__packed__));
1a76fd
 
1a76fd
 /*
1a76fd
@@ -723,7 +723,7 @@ enum iscsi_flashnode_param {
1a76fd
 struct iscsi_flashnode_param_info {
1a76fd
 	uint32_t len;		/* Actual length of the param */
1a76fd
 	uint16_t param;		/* iscsi param value */
1a76fd
-	uint8_t value[0];	/* length sized value follows */
1a76fd
+	uint8_t value[];	/* length sized value follows */
1a76fd
 } __attribute__((__packed__));
1a76fd
 
1a76fd
 enum iscsi_discovery_parent_type {
1a76fd
-- 
1a76fd
2.26.2
1a76fd