diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-17 09:16:20 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-17 11:40:24 +0200 |
commit | e82d864e02f7ab36881c6cda2798bb76370ee6c7 (patch) | |
tree | 6cd1c137643d25511c71cccea26b506fbb736a6c /daemon | |
parent | d7569c00787fb92a8cd2f08c537ea1662f987901 (diff) | |
download | libguestfs-e82d864e02f7ab36881c6cda2798bb76370ee6c7.tar.gz libguestfs-e82d864e02f7ab36881c6cda2798bb76370ee6c7.tar.xz libguestfs-e82d864e02f7ab36881c6cda2798bb76370ee6c7.zip |
command.c: avoid shadowing a global function
* daemon/command.c (do_sh_lines, do_sh): Do not shadow global "command".
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/command.c b/daemon/command.c index 9fbbd959..b2b5ef91 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); } |