[Libvirt-cim] [PATCH] (#2ish) Fix for libvirt-0.4.0

Jay Gagnon grendel at linux.vnet.ibm.com
Fri Jan 25 17:45:37 UTC 2008


# HG changeset patch
# User Jay Gagnon <grendel at linux.vnet.ibm.com>
# Date 1201283027 18000
# Node ID 26461f17fbb4b37d14bf74c82064383753dcedd9
# Parent  adf18661f7948a0287a4586d97572793e8e03826
(#2ish) Fix for libvirt-0.4.0

Little tough for Dan to test that one since the #define doesn't even happen on his system, but the patch was light one semicolon. :)

Signed-off-by: Jay Gagnon <grendel at linux.vnet.ibm.com>

diff -r adf18661f794 -r 26461f17fbb4 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c	Thu Jan 24 12:56:45 2008 +0100
+++ b/libxkutil/device_parsing.c	Fri Jan 25 12:43:47 2008 -0500
@@ -856,7 +856,11 @@ static int _change_device(virDomainPtr d
 {
         char *xml = NULL;
         int ret = 0;
+#if LIBVIR_VERSION_NUMBER >= 4000
+        int (*func)(virDomainPtr, const char *);
+#else
         int (*func)(virDomainPtr, char *);
+#endif
 
         if (attach)
                 func = virDomainAttachDevice;




More information about the Libvirt-cim mailing list