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

Michal Privoznik posted 1 patch 2 weeks ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/988a0e0e3851c94a36f00efb93d57832870f1e69.1549552911.git.mprivozn@redhat.com
src/util/virinitctl.c | 5 +++++
1 file changed, 5 insertions(+)

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

Posted by Michal Privoznik 2 weeks ago
The virInitctlFifos list is exported, but lacks definition for
non-Linux and/or non-BSD case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list