From c46641acb5e29edfe3114ecb05614bfbff28372d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Don't hard-code Storage API errors, in case building with older libvirt. --- libvirt/libvirt_c_epilogue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt/libvirt_c_epilogue.c b/libvirt/libvirt_c_epilogue.c index a43d8e2..78bd23e 100644 --- a/libvirt/libvirt_c_epilogue.c +++ b/libvirt/libvirt_c_epilogue.c @@ -111,8 +111,8 @@ not_supported (const char *fn) * to convert it into VIR_*_UNKNOWN (code). */ -#define MAX_VIR_CODE VIR_ERR_NO_STORAGE_VOL -#define MAX_VIR_DOMAIN VIR_FROM_STORAGE +#define MAX_VIR_CODE 50 /* VIR_ERR_NO_STORAGE_VOL */ +#define MAX_VIR_DOMAIN 17 /* VIR_FROM_STORAGE */ #define MAX_VIR_LEVEL VIR_ERR_ERROR static inline value -- 1.8.3.1