From f143e4e7b66562a1f423d22564e3c5555dd7944d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 19 Dec 2022 14:13:16 -0500 Subject: [PATCH] lxc: fix XDR protocol compliance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- 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.39.5