Message ID | 20241116162825.33164-1-thorsten.blum@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | sctp: Replace zero-length array with flexible array member | expand |
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 836a7e200f39..19eaaf3948ed 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -239,7 +239,7 @@ struct sctp_idatahdr { __u32 ppid; __be32 fsn; }; - __u8 payload[0]; + __u8 payload[]; }; struct sctp_idata_chunk {
Replace the deprecated zero-length array with a modern flexible array member in the struct sctp_idatahdr. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> --- include/linux/sctp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)