diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-17 15:22:41 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-17 15:22:41 -0400 |
commit | edb7c60e27c1baff38d82440dc52eaffac9a45f4 (patch) | |
tree | fc49d1f862fd5f1393c8b6245d571d97b208d91a /tools/perf/builtin-help.c | |
parent | 8035458fbb567ae138c77a5f710050107c6a7066 (diff) |
perf options: Type check all the remaining OPT_ variants
OPT_SET_INT was renamed to OPT_SET_UINT since the only use in these
tools is to set something that has an enum type, that is builtin
compatible with unsigned int.
Several string constifications were done to make OPT_STRING require a
const char * type.
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-help.c')
-rw-r--r-- | tools/perf/builtin-help.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c index 81e3ecc40fc7..6d5a8a7faf48 100644 --- a/tools/perf/builtin-help.c +++ b/tools/perf/builtin-help.c | |||
@@ -33,10 +33,10 @@ static bool show_all = false; | |||
33 | static enum help_format help_format = HELP_FORMAT_MAN; | 33 | static enum help_format help_format = HELP_FORMAT_MAN; |
34 | static struct option builtin_help_options[] = { | 34 | static struct option builtin_help_options[] = { |
35 | OPT_BOOLEAN('a', "all", &show_all, "print all available commands"), | 35 | OPT_BOOLEAN('a', "all", &show_all, "print all available commands"), |
36 | OPT_SET_INT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN), | 36 | OPT_SET_UINT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN), |
37 | OPT_SET_INT('w', "web", &help_format, "show manual in web browser", | 37 | OPT_SET_UINT('w', "web", &help_format, "show manual in web browser", |
38 | HELP_FORMAT_WEB), | 38 | HELP_FORMAT_WEB), |
39 | OPT_SET_INT('i', "info", &help_format, "show info page", | 39 | OPT_SET_UINT('i', "info", &help_format, "show info page", |
40 | HELP_FORMAT_INFO), | 40 | HELP_FORMAT_INFO), |
41 | OPT_END(), | 41 | OPT_END(), |
42 | }; | 42 | }; |