Commit ed98ea21 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Paul Moore

audit: replace zero-length array with flexible-array member

Zero-length arrays are deprecated and should be replaced with
flexible-array members.

Link: https://github.com/KSPP/linux/issues/78Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 30561b51
...@@ -514,7 +514,7 @@ struct audit_rule_data { ...@@ -514,7 +514,7 @@ struct audit_rule_data {
__u32 values[AUDIT_MAX_FIELDS]; __u32 values[AUDIT_MAX_FIELDS];
__u32 fieldflags[AUDIT_MAX_FIELDS]; __u32 fieldflags[AUDIT_MAX_FIELDS];
__u32 buflen; /* total length of string fields */ __u32 buflen; /* total length of string fields */
char buf[0]; /* string fields buffer */ char buf[]; /* string fields buffer */
}; };
#endif /* _UAPI_LINUX_AUDIT_H_ */ #endif /* _UAPI_LINUX_AUDIT_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment