From e82d864e02f7ab36881c6cda2798bb76370ee6c7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 Aug 2009 09:16:20 +0200 Subject: [PATCH] command.c: avoid shadowing a global function * daemon/command.c (do_sh_lines, do_sh): Do not shadow global "command". --- daemon/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/command.c b/daemon/command.c index 9fbbd95..b2b5ef9 100644 --- a/daemon/command.c +++ b/daemon/command.c @@ -132,17 +132,17 @@ do_command_lines (char *const *argv) } char * -do_sh (const char *command) +do_sh (const char *cmd) { - const char *argv[] = { "/bin/sh", "-c", command, NULL }; + const char *argv[] = { "/bin/sh", "-c", cmd, NULL }; return do_command ((char **) argv); } char ** -do_sh_lines (const char *command) +do_sh_lines (const char *cmd) { - const char *argv[] = { "/bin/sh", "-c", command, NULL }; + const char *argv[] = { "/bin/sh", "-c", cmd, NULL }; return do_command_lines ((char **) argv); } -- 1.8.3.1