Re: [PATCH] Add Python binding for virGetVersion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



BTW, it doesn't seem to make any sense at all to have virGetVersion be case sensitive. Fixed in the trivial patch attached.

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
Index: src/libvirt.c
===================================================================
RCS file: /data/cvs/libvirt/src/libvirt.c,v
retrieving revision 1.71
diff -u -r1.71 libvirt.c
--- src/libvirt.c	2 May 2007 17:40:00 -0000	1.71
+++ src/libvirt.c	29 May 2007 11:46:30 -0000
@@ -249,7 +249,7 @@
 	    type = "Xen";
 	for (i = 0;i < virDriverTabCount;i++) {
 	    if ((virDriverTab[i] != NULL) &&
-	        (!strcmp(virDriverTab[i]->name, type))) {
+	        (!strcasecmp(virDriverTab[i]->name, type))) {
 		*typeVer = virDriverTab[i]->ver;
 		break;
 	    }

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]