Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349975
b: refs/heads/master
c: 7c3102b
h: refs/heads/master
i:
  349973: ea52997
  349971: 29289a7
  349967: 26457cc
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 24, 2013
1 parent 97cee04 commit 0e0cd20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c6ccc3755650497234f9027a0ac9e3b2cf1ba9f
refs/heads/master: 7c3102b843a581b4b84643a18d423f8807364ca0
4 changes: 2 additions & 2 deletions trunk/tools/perf/ui/browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ unsigned int ui_browser__list_head_refresh(struct ui_browser *browser)
return row;
}

static struct ui_browser__colorset {
static struct ui_browser_colorset {
const char *name, *fg, *bg;
int colorset;
} ui_browser__colorsets[] = {
Expand Down Expand Up @@ -706,7 +706,7 @@ void ui_browser__init(void)
perf_config(ui_browser__color_config, NULL);

while (ui_browser__colorsets[i].name) {
struct ui_browser__colorset *c = &ui_browser__colorsets[i++];
struct ui_browser_colorset *c = &ui_browser__colorsets[i++];
sltt_set_color(c->colorset, c->name, c->fg, c->bg);
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ int symbol__tui_annotate(struct symbol *sym, struct map *map, int evidx,
/*
* Keep the entries sorted, they are bsearch'ed
*/
static struct annotate__config {
static struct annotate_config {
const char *name;
bool *value;
} annotate__configs[] = {
Expand All @@ -940,23 +940,23 @@ static struct annotate__config {

static int annotate_config__cmp(const void *name, const void *cfgp)
{
const struct annotate__config *cfg = cfgp;
const struct annotate_config *cfg = cfgp;

return strcmp(name, cfg->name);
}

static int annotate__config(const char *var, const char *value,
void *data __maybe_unused)
{
struct annotate__config *cfg;
struct annotate_config *cfg;
const char *name;

if (prefixcmp(var, "annotate.") != 0)
return 0;

name = var + 9;
cfg = bsearch(name, annotate__configs, ARRAY_SIZE(annotate__configs),
sizeof(struct annotate__config), annotate_config__cmp);
sizeof(struct annotate_config), annotate_config__cmp);

if (cfg == NULL)
return -1;
Expand Down

0 comments on commit 0e0cd20

Please sign in to comment.