summaryrefslogtreecommitdiffstats
path: root/libvirt
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-01-19 17:41:51 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-01-19 17:41:51 +0000
commitc46641acb5e29edfe3114ecb05614bfbff28372d (patch)
tree7a1bd3da50188fd21b98085ec1c6201afe3c0277 /libvirt
parentcf1b8052e9bca746a90dc4380bf4d6b09399adf2 (diff)
downloadvirt-top-c46641acb5e29edfe3114ecb05614bfbff28372d.tar.gz
virt-top-c46641acb5e29edfe3114ecb05614bfbff28372d.tar.xz
virt-top-c46641acb5e29edfe3114ecb05614bfbff28372d.zip
Don't hard-code Storage API errors, in case building with older libvirt.
Diffstat (limited to 'libvirt')
-rw-r--r--libvirt/libvirt_c_epilogue.c4
1 files 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