[PATCH 1/4] vircommand: Drop unused arguments from virCommandMassCloseGetFDs*()

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

 



Both virCommandMassCloseGetFDsLinux() and
virCommandMassCloseGetFDsGeneric() take @cmd argument only to
mark it as unused. Drop it from both.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/util/vircommand.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/util/vircommand.c b/src/util/vircommand.c
index 5f094c625a..60d419a695 100644
--- a/src/util/vircommand.c
+++ b/src/util/vircommand.c
@@ -485,8 +485,7 @@ virExecCommon(virCommand *cmd, gid_t *groups, int ngroups)
  * onto child process (well, the one we will exec soon since this
  * is called from the child). */
 static int
-virCommandMassCloseGetFDsLinux(virCommand *cmd G_GNUC_UNUSED,
-                               virBitmap *fds)
+virCommandMassCloseGetFDsLinux(virBitmap *fds)
 {
     g_autoptr(DIR) dp = NULL;
     struct dirent *entry;
@@ -518,8 +517,7 @@ virCommandMassCloseGetFDsLinux(virCommand *cmd G_GNUC_UNUSED,
 # else /* !__linux__ */
 
 static int
-virCommandMassCloseGetFDsGeneric(virCommand *cmd G_GNUC_UNUSED,
-                                 virBitmap *fds)
+virCommandMassCloseGetFDsGeneric(virBitmap *fds)
 {
     virBitmapSetAll(fds);
     return 0;
@@ -554,10 +552,10 @@ virCommandMassCloseFrom(virCommand *cmd,
     fds = virBitmapNew(openmax);
 
 # ifdef __linux__
-    if (virCommandMassCloseGetFDsLinux(cmd, fds) < 0)
+    if (virCommandMassCloseGetFDsLinux(fds) < 0)
         return -1;
 # else
-    if (virCommandMassCloseGetFDsGeneric(cmd, fds) < 0)
+    if (virCommandMassCloseGetFDsGeneric(fds) < 0)
         return -1;
 # endif
 
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux