[Libvirt-cim] [PATCH 01 of 11] EAFP: fix stale issue with threads

Heidi Eckhart heidieck at linux.vnet.ibm.com
Tue Feb 5 10:14:00 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1202204968 -3600
# Node ID 32d3353796600f7ee064b77ecca0d22d17e3104e
# Parent  108f192632bfd801a1f0520b8f20341a2c3a2f53
EAFP: fix stale issue with threads
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 108f192632bf -r 32d335379660 src/Virt_ElementAllocatedFromPool.c
--- a/src/Virt_ElementAllocatedFromPool.c	Mon Feb 04 08:35:03 2008 -0800
+++ b/src/Virt_ElementAllocatedFromPool.c	Tue Feb 05 10:49:28 2008 +0100
@@ -228,7 +228,7 @@ static CMPIStatus pool_to_vdev(const CMP
 
 LIBVIRT_CIM_DEFAULT_MAKEREF()
 
-char* antecedent[] = {
+static char* antecedent[] = {
         "Xen_ProcessorPool",
         "Xen_MemoryPool",
         "Xen_NetworkPool",
@@ -240,7 +240,7 @@ char* antecedent[] = {
         NULL
 };
 
-char* dependent[] = {
+static char* dependent[] = {
         "Xen_Processor",
         "Xen_Memory",
         "Xen_NetworkPort",
@@ -252,7 +252,7 @@ char* dependent[] = {
         NULL
 };
 
-char* assoc_classname[] = {
+static char* assoc_classname[] = {
         "Xen_ElementAllocatedFromPool",
         "KVM_ElementAllocatedFromPool",        
         NULL




More information about the Libvirt-cim mailing list