Skip to contentSkip to conversation

sctp: Replace zero-length array with flexible array member

PATCH Superseded Thorsten Blum 2 participants 2 messages Nov 16, 2024 – Nov 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sctp: Replace zero-length array with flexible array member

Replace the deprecated zero-length array with a modern flexible array member in the struct sctp_idatahdr.

---
 include/linux/sctp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sctp.h +1 -1
index 836a7e200f39..19eaaf3948ed 100644
@@ -239,7 +239,7 @@ struct sctp_idatahdr {
 		__u32 ppid;
 		__be32 fsn;
 	};
-	__u8 payload[0];
+	__u8 payload[];
 };
 
 struct sctp_idata_chunk {
Signature · 1 line
2.47.0