diff options
Diffstat (limited to 'tools/perf/util/help-unknown-cmd.c')
-rw-r--r-- | tools/perf/util/help-unknown-cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/help-unknown-cmd.c b/tools/perf/util/help-unknown-cmd.c index dc1e41c9b054..43a98a4dc1e1 100644 --- a/tools/perf/util/help-unknown-cmd.c +++ b/tools/perf/util/help-unknown-cmd.c | |||
@@ -6,7 +6,8 @@ | |||
6 | static int autocorrect; | 6 | static int autocorrect; |
7 | static struct cmdnames aliases; | 7 | static struct cmdnames aliases; |
8 | 8 | ||
9 | static int perf_unknown_cmd_config(const char *var, const char *value, void *cb) | 9 | static int perf_unknown_cmd_config(const char *var, const char *value, |
10 | void *cb __maybe_unused) | ||
10 | { | 11 | { |
11 | if (!strcmp(var, "help.autocorrect")) | 12 | if (!strcmp(var, "help.autocorrect")) |
12 | autocorrect = perf_config_int(var,value); | 13 | autocorrect = perf_config_int(var,value); |
@@ -14,7 +15,7 @@ static int perf_unknown_cmd_config(const char *var, const char *value, void *cb) | |||
14 | if (!prefixcmp(var, "alias.")) | 15 | if (!prefixcmp(var, "alias.")) |
15 | add_cmdname(&aliases, var + 6, strlen(var + 6)); | 16 | add_cmdname(&aliases, var + 6, strlen(var + 6)); |
16 | 17 | ||
17 | return perf_default_config(var, value, cb); | 18 | return 0; |
18 | } | 19 | } |
19 | 20 | ||
20 | static int levenshtein_compare(const void *p1, const void *p2) | 21 | static int levenshtein_compare(const void *p1, const void *p2) |