Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169571
b: refs/heads/master
c: c1e5301
h: refs/heads/master
i:
  169569: 3f78fab
  169567: ba5637a
v: v3
  • Loading branch information
Thiago Farina authored and Ingo Molnar committed Nov 3, 2009
1 parent bbbb81b commit f95e945
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 900b20d5900045fb9b48f2fb3d80cbdbae3f44c0
refs/heads/master: c1e530178540df26eb39f10a972d06f96302ceb4
12 changes: 5 additions & 7 deletions trunk/tools/perf/builtin-help.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ static const char *get_man_viewer_info(const char *name)
{
struct man_viewer_info_list *viewer;

for (viewer = man_viewer_info_list; viewer; viewer = viewer->next)
{
for (viewer = man_viewer_info_list; viewer; viewer = viewer->next) {
if (!strcasecmp(name, viewer->name))
return viewer->info;
}
Expand Down Expand Up @@ -115,7 +114,7 @@ static int check_emacsclient_version(void)
return 0;
}

static void exec_woman_emacs(const char* path, const char *page)
static void exec_woman_emacs(const char *path, const char *page)
{
if (!check_emacsclient_version()) {
/* This works only with emacsclient version >= 22. */
Expand All @@ -129,7 +128,7 @@ static void exec_woman_emacs(const char* path, const char *page)
}
}

static void exec_man_konqueror(const char* path, const char *page)
static void exec_man_konqueror(const char *path, const char *page)
{
const char *display = getenv("DISPLAY");
if (display && *display) {
Expand Down Expand Up @@ -157,7 +156,7 @@ static void exec_man_konqueror(const char* path, const char *page)
}
}

static void exec_man_man(const char* path, const char *page)
static void exec_man_man(const char *path, const char *page)
{
if (!path)
path = "man";
Expand Down Expand Up @@ -364,9 +363,8 @@ static void show_man_page(const char *perf_cmd)

setup_man_path();
for (viewer = man_viewer_list; viewer; viewer = viewer->next)
{
exec_viewer(viewer->name, page); /* will return when unable */
}

if (fallback)
exec_viewer(fallback, page);
exec_viewer("man", page);
Expand Down

0 comments on commit f95e945

Please sign in to comment.