aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browser.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2013-01-18 14:55:52 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 14:40:51 -0500
commit7c3102b843a581b4b84643a18d423f8807364ca0 (patch)
tree50036948759a5f01567958b03d21c8bab6f557ac /tools/perf/ui/browser.c
parent5c6ccc3755650497234f9027a0ac9e3b2cf1ba9f (diff)
perf ui browsers: Fix usage of __ in struct names
In tools/perf we use a convention where __ separates the struct name from the function name for functions that operate on a struct instance. Fix this usage by removing it from the struct names and fix also the associated functions. Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-rfj7acng5tukftb8hy1rrw08@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browser.c')
-rw-r--r--tools/perf/ui/browser.c4
1 files changed, 2 insertions, 2 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
474static struct ui_browser__colorset { 474static 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