[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH libguestfs 05/13] command.c: avoid shadowing a global function



From: Jim Meyering <meyering redhat com>

* daemon/command.c (do_sh_lines, do_sh): Do not shadow global "command".
---
 daemon/command.c |    8 ++++----
 1 files 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.6.4.378.g88f2f


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]