From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Sat, 19 Jan 2008 17:41:51 +0000 (+0000) Subject: Don't hard-code Storage API errors, in case building with older libvirt. X-Git-Tag: 1.0.4~54 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c46641acb5e29edfe3114ecb05614bfbff28372d;p=virt-top.git Don't hard-code Storage API errors, in case building with older libvirt. --- 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