From e53df261c9ca11435df0c8853350d913b557446b Mon Sep 17 00:00:00 2001 From: "Dr. Tilmann Bubeck" Date: Sun, 6 Oct 2013 16:50:33 +0200 Subject: Fix warning raised by "-Wshadow". --- process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index 7a5d6d6..41142c5 100644 --- a/process.c +++ b/process.c @@ -1323,23 +1323,23 @@ remove_entry(const char *inputfilename, int lineno, Xauth *auth, char *data) * help */ int -print_help(FILE *fp, const char *cmd, const char *prefix) +print_help(FILE *fp, const char *cmd, const char *line_prefix) { CommandTable *ct; int n = 0; - if (!prefix) prefix = ""; + if (!line_prefix) line_prefix = ""; if (!cmd) { /* if no cmd, print all help */ for (ct = command_table; ct->name; ct++) { - fprintf (fp, "%s%s\n", prefix, ct->helptext); + fprintf (fp, "%s%s\n", line_prefix, ct->helptext); n++; } } else { int len = strlen (cmd); for (ct = command_table; ct->name; ct++) { if (strncmp (cmd, ct->name, len) == 0) { - fprintf (fp, "%s%s\n", prefix, ct->helptext); + fprintf (fp, "%s%s\n", line_prefix, ct->helptext); n++; } } -- cgit v1.2.1