[libvirt PATCH 2/9] lxc: fix XDR protocol compliance

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

 



The RFC spec for XDR does not allow enums to omit their
values, they must be explicitly given. Don't rely on this
rpcgen language extension.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/lxc/lxc_monitor_protocol.x | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lxc/lxc_monitor_protocol.x b/src/lxc/lxc_monitor_protocol.x
index 5e3d5d9983..d6148412b7 100644
--- a/src/lxc/lxc_monitor_protocol.x
+++ b/src/lxc/lxc_monitor_protocol.x
@@ -7,9 +7,9 @@
 %#include "virxdrdefs.h"
 
 enum virLXCMonitorExitStatus {
-    VIR_LXC_MONITOR_EXIT_STATUS_ERROR,
-    VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN,
-    VIR_LXC_MONITOR_EXIT_STATUS_REBOOT
+    VIR_LXC_MONITOR_EXIT_STATUS_ERROR = 0,
+    VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN = 1,
+    VIR_LXC_MONITOR_EXIT_STATUS_REBOOT = 2
 };
 
 struct virLXCMonitorExitEventMsg {
-- 
2.38.1




[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