Creating a common structure initialization pattern for struct option
This patch tries to creates a common structure initialization within the cpupower tool. Previously the ``struct option`` was initialized using `designated initializer` technique which was not needed. There were conflicting initialization methods seen with bench/main.c & others. Signed-off-by: Sriram Raghunathan <sriram@marirs.net.in> Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
19c9fb896f
commit
57ab3b0872
@@ -134,7 +134,7 @@ next_one:
|
||||
}
|
||||
|
||||
static struct option info_opts[] = {
|
||||
{.name = "numpst", .has_arg=no_argument, .flag=NULL, .val='n'},
|
||||
{"numpst", no_argument, NULL, 'n'},
|
||||
};
|
||||
|
||||
void print_help(void)
|
||||
|
Reference in New Issue
Block a user