History

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

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

Xiu Jianfeng committed 4 years ago

Commit ed98ea21 parent 30561b51 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/audit.h+1−1
@@ -514,7 +514,7 @@ struct audit_rule_data { · 513 unmodified lines
514514 __u32 values[AUDIT_MAX_FIELDS];
515515 __u32 fieldflags[AUDIT_MAX_FIELDS];
516516 __u32 buflen; /* total length of string fields */
517− char buf[0]; /* string fields buffer */
517+ char buf[]; /* string fields buffer */
518518 };
519519
520520 #endif /* _UAPI_LINUX_AUDIT_H_ */