diff options
Diffstat (limited to 'tools/perf/builtin-bench.c')
| -rw-r--r-- | tools/perf/builtin-bench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c index 46996774e559..fcb96269852a 100644 --- a/tools/perf/builtin-bench.c +++ b/tools/perf/builtin-bench.c | |||
| @@ -95,7 +95,7 @@ static void dump_suites(int subsys_index) | |||
| 95 | return; | 95 | return; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | static char *bench_format_str; | 98 | static const char *bench_format_str; |
| 99 | int bench_format = BENCH_FORMAT_DEFAULT; | 99 | int bench_format = BENCH_FORMAT_DEFAULT; |
| 100 | 100 | ||
| 101 | static const struct option bench_options[] = { | 101 | static const struct option bench_options[] = { |
| @@ -126,7 +126,7 @@ static void print_usage(void) | |||
| 126 | printf("\n"); | 126 | printf("\n"); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | static int bench_str2int(char *str) | 129 | static int bench_str2int(const char *str) |
| 130 | { | 130 | { |
| 131 | if (!str) | 131 | if (!str) |
| 132 | return BENCH_FORMAT_DEFAULT; | 132 | return BENCH_FORMAT_DEFAULT; |
