diff options
-rw-r--r-- | tools/perf/ui/browser.c | 4 | ||||
-rw-r--r-- | tools/perf/ui/browsers/annotate.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c index 4aeb7d5df939..588bcb2d008b 100644 --- a/tools/perf/ui/browser.c +++ b/tools/perf/ui/browser.c | |||
@@ -471,7 +471,7 @@ unsigned int ui_browser__list_head_refresh(struct ui_browser *browser) | |||
471 | return row; | 471 | return row; |
472 | } | 472 | } |
473 | 473 | ||
474 | static struct ui_browser__colorset { | 474 | static struct ui_browser_colorset { |
475 | const char *name, *fg, *bg; | 475 | const char *name, *fg, *bg; |
476 | int colorset; | 476 | int colorset; |
477 | } ui_browser__colorsets[] = { | 477 | } ui_browser__colorsets[] = { |
@@ -706,7 +706,7 @@ void ui_browser__init(void) | |||
706 | perf_config(ui_browser__color_config, NULL); | 706 | perf_config(ui_browser__color_config, NULL); |
707 | 707 | ||
708 | while (ui_browser__colorsets[i].name) { | 708 | while (ui_browser__colorsets[i].name) { |
709 | struct ui_browser__colorset *c = &ui_browser__colorsets[i++]; | 709 | struct ui_browser_colorset *c = &ui_browser__colorsets[i++]; |
710 | sltt_set_color(c->colorset, c->name, c->fg, c->bg); | 710 | sltt_set_color(c->colorset, c->name, c->fg, c->bg); |
711 | } | 711 | } |
712 | 712 | ||
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 2fc7f04691cf..7dca1555c610 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c | |||
@@ -926,7 +926,7 @@ out_free_offsets: | |||
926 | /* | 926 | /* |
927 | * Keep the entries sorted, they are bsearch'ed | 927 | * Keep the entries sorted, they are bsearch'ed |
928 | */ | 928 | */ |
929 | static struct annotate__config { | 929 | static struct annotate_config { |
930 | const char *name; | 930 | const char *name; |
931 | bool *value; | 931 | bool *value; |
932 | } annotate__configs[] = { | 932 | } annotate__configs[] = { |
@@ -940,7 +940,7 @@ static struct annotate__config { | |||
940 | 940 | ||
941 | static int annotate_config__cmp(const void *name, const void *cfgp) | 941 | static int annotate_config__cmp(const void *name, const void *cfgp) |
942 | { | 942 | { |
943 | const struct annotate__config *cfg = cfgp; | 943 | const struct annotate_config *cfg = cfgp; |
944 | 944 | ||
945 | return strcmp(name, cfg->name); | 945 | return strcmp(name, cfg->name); |
946 | } | 946 | } |
@@ -948,7 +948,7 @@ static int annotate_config__cmp(const void *name, const void *cfgp) | |||
948 | static int annotate__config(const char *var, const char *value, | 948 | static int annotate__config(const char *var, const char *value, |
949 | void *data __maybe_unused) | 949 | void *data __maybe_unused) |
950 | { | 950 | { |
951 | struct annotate__config *cfg; | 951 | struct annotate_config *cfg; |
952 | const char *name; | 952 | const char *name; |
953 | 953 | ||
954 | if (prefixcmp(var, "annotate.") != 0) | 954 | if (prefixcmp(var, "annotate.") != 0) |
@@ -956,7 +956,7 @@ static int annotate__config(const char *var, const char *value, | |||
956 | 956 | ||
957 | name = var + 9; | 957 | name = var + 9; |
958 | cfg = bsearch(name, annotate__configs, ARRAY_SIZE(annotate__configs), | 958 | cfg = bsearch(name, annotate__configs, ARRAY_SIZE(annotate__configs), |
959 | sizeof(struct annotate__config), annotate_config__cmp); | 959 | sizeof(struct annotate_config), annotate_config__cmp); |
960 | 960 | ||
961 | if (cfg == NULL) | 961 | if (cfg == NULL) |
962 | return -1; | 962 | return -1; |