diff options
author | Thiago Jung Bauermann <bauerman@linux.ibm.com> | 2019-06-11 03:28:10 -0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2019-06-14 09:02:44 -0400 |
commit | e038f5f691e003af25cda0f1593d2cc0a4d1c866 (patch) | |
tree | fe7b9aef19152e189f80e905e75c8f6519c646ac /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | b169424551930a9325f700f502802f4d515194e5 (diff) |
ima: Use designated initializers for struct ima_event_data
Designated initializers allow specifying only the members of the struct
that need initialization. Non-mentioned members are initialized to zero.
This makes the code a bit clearer (particularly in ima_add_boot_aggregate)
and also allows adding a new member to the struct without having to update
all struct initializations.
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions