summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-10-06 16:50:33 +0200
committerDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-10-06 16:50:33 +0200
commite53df261c9ca11435df0c8853350d913b557446b (patch)
treec18ab6a9535d336107c0abb1d647153fba99818e /process.c
parent92de3583c7aaaa2040728808add2186348859b98 (diff)
downloadxorg-app-xauth-e53df261c9ca11435df0c8853350d913b557446b.tar.gz
Fix warning raised by "-Wshadow".
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
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++;
}
}