[PATCH] virinitctl: Provide a stub list of init fifos for non-Linux

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

 



The virInitctlFifos list is exported, but lacks definition for
non-Linux and/or non-BSD case.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---

Pushed under build breaker rule.

 src/util/virinitctl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/util/virinitctl.c b/src/util/virinitctl.c
index bbcbbb483d..6966e8a3e9 100644
--- a/src/util/virinitctl.c
+++ b/src/util/virinitctl.c
@@ -184,6 +184,11 @@ virInitctlSetRunLevel(const char *fifo,
     return ret;
 }
 #else
+/* On non-Linux and non-BSD there are no known inits */
+const char *virInitctlFifos[] = {
+  NULL
+};
+
 int virInitctlSetRunLevel(const char *fifo ATTRIBUTE_UNUSED,
                           virInitctlRunLevel level ATTRIBUTE_UNUSED)
 {
-- 
2.19.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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