From: Jim Meyering Date: Mon, 17 Aug 2009 07:16:20 +0000 (+0200) Subject: command.c: avoid shadowing a global function X-Git-Tag: 1.0.68~44 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=e82d864e02f7ab36881c6cda2798bb76370ee6c7;p=libguestfs.git command.c: avoid shadowing a global function * daemon/command.c (do_sh_lines, do_sh): Do not shadow global "command". --- 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); }