[Libvirt-cim] [PATCH] Fix silly compile warning (and actually initialize the library as intended)

Dan Smith danms at us.ibm.com
Thu Apr 17 20:37:30 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1208464649 25200
# Node ID 1904e4f08af21f99af698e42da236cf39407c5e2
# Parent  2806f8744946757036f9639d8c8fe9a95f689233
Fix silly compile warning (and actually initialize the library as intended)

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 2806f8744946 -r 1904e4f08af2 libxkutil/misc_util.c
--- a/libxkutil/misc_util.c	Wed Apr 16 17:50:49 2008 -0700
+++ b/libxkutil/misc_util.c	Thu Apr 17 13:37:29 2008 -0700
@@ -452,7 +452,7 @@ bool parse_instanceid(const CMPIObjectPa
 
 bool libvirt_cim_init(void)
 {
-        return virInitialize == 0;
+        return virInitialize() == 0;
 }
 
 bool check_refs_pfx_match(const CMPIObjectPath *refa,




More information about the Libvirt-cim mailing list