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
514 __u32 values[AUDIT_MAX_FIELDS];514 __u32 values[AUDIT_MAX_FIELDS];
515 __u32 fieldflags[AUDIT_MAX_FIELDS];515 __u32 fieldflags[AUDIT_MAX_FIELDS];
516 __u32 buflen; /* total length of string fields */516 __u32 buflen; /* total length of string fields */
517 char buf[0]; /* string fields buffer */517 char buf[]; /* string fields buffer */
518};518};
519 519
520#endif /* _UAPI_LINUX_AUDIT_H_ */520#endif /* _UAPI_LINUX_AUDIT_H_ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t