]> asedeno.scripts.mit.edu Git - linux.git/commit
tools lib subcmd: Fix missing member name
authorSoramichi AKIYAMA <akiyama@m.soramichi.jp>
Fri, 13 Jan 2017 12:56:23 +0000 (21:56 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Jan 2017 17:59:15 +0000 (14:59 -0300)
commitf7ee6595a5acec78963b3de5fbdd537d8aa53b92
treefc082e566e4543d735851634a429da5a2b31989e
parent2484c4c58fd1bc0d7711d294c530a1518da6a172
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>
tools/lib/subcmd/parse-options.h