diff options
author | Soramichi AKIYAMA <akiyama@m.soramichi.jp> | 2017-01-13 15:56:23 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-16 20:59:15 +0300 |
commit | f7ee6595a5acec78963b3de5fbdd537d8aa53b92 (patch) | |
tree | fc082e566e4543d735851634a429da5a2b31989e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2484c4c58fd1bc0d7711d294c530a1518da6a172 (diff) | |
download | linux-f7ee6595a5acec78963b3de5fbdd537d8aa53b92.tar.xz |
tools lib subcmd: Fix missing member name
This patch adds missing member names to struct initializations.
Although in C99 for struct S {int x, int y} two init codes struct S s =
{.x = (a), (b)} and struct S s = {.x = (a), .y = (b)} are the same, it
is better to explicitly write .y (.argh in this patch) for readability
and robustness against language/compiler evolutions.
Signed-off-by: Soramichi Akiyama <akiyama@m.soramichi.jp>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170113215623.32fb1ac2d862af0048c30fe6@m.soramichi.jp
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions