mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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/78 Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
30561b51cc
commit
ed98ea2128
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ struct audit_rule_data {
|
|||
__u32 values[AUDIT_MAX_FIELDS];
|
||||
__u32 fieldflags[AUDIT_MAX_FIELDS];
|
||||
__u32 buflen; /* total length of string fields */
|
||||
char buf[0]; /* string fields buffer */
|
||||
char buf[]; /* string fields buffer */
|
||||
};
|
||||
|
||||
#endif /* _UAPI_LINUX_AUDIT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue