Commit c1e53017 authored by Thiago Farina's avatar Thiago Farina Committed by Ingo Molnar

perf: Clean up trivial style issues in builtin-help.c

Pointed out by checkpatch.
Signed-off-by: default avatarThiago Farina <tfransosi@gmail.com>
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
Cc: Valdis.Kletnieks@vt.edu
LKML-Reference: <1257254925-5423-1-git-send-email-tfransosi@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 900b20d5
...@@ -61,8 +61,7 @@ static const char *get_man_viewer_info(const char *name) ...@@ -61,8 +61,7 @@ static const char *get_man_viewer_info(const char *name)
{ {
struct man_viewer_info_list *viewer; 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)) if (!strcasecmp(name, viewer->name))
return viewer->info; return viewer->info;
} }
...@@ -115,7 +114,7 @@ static int check_emacsclient_version(void) ...@@ -115,7 +114,7 @@ static int check_emacsclient_version(void)
return 0; 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()) { if (!check_emacsclient_version()) {
/* This works only with emacsclient version >= 22. */ /* This works only with emacsclient version >= 22. */
...@@ -129,7 +128,7 @@ static void exec_woman_emacs(const char* path, const char *page) ...@@ -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"); const char *display = getenv("DISPLAY");
if (display && *display) { if (display && *display) {
...@@ -157,7 +156,7 @@ static void exec_man_konqueror(const char* path, const char *page) ...@@ -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) if (!path)
path = "man"; path = "man";
...@@ -364,9 +363,8 @@ static void show_man_page(const char *perf_cmd) ...@@ -364,9 +363,8 @@ static void show_man_page(const char *perf_cmd)
setup_man_path(); setup_man_path();
for (viewer = man_viewer_list; viewer; viewer = viewer->next) for (viewer = man_viewer_list; viewer; viewer = viewer->next)
{
exec_viewer(viewer->name, page); /* will return when unable */ exec_viewer(viewer->name, page); /* will return when unable */
}
if (fallback) if (fallback)
exec_viewer(fallback, page); exec_viewer(fallback, page);
exec_viewer("man", page); exec_viewer("man", page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment