summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-17 09:16:20 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commite82d864e02f7ab36881c6cda2798bb76370ee6c7 (patch)
tree6cd1c137643d25511c71cccea26b506fbb736a6c /daemon
parentd7569c00787fb92a8cd2f08c537ea1662f987901 (diff)
downloadlibguestfs-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.c8
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);
}