[Libvirt-cim] [PATCH 03 of 11] ECTP: fix stale issue with threads

Heidi Eckhart heidieck at linux.vnet.ibm.com
Tue Feb 5 09:03:23 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1202205617 -3600
# Node ID 36f5adc3895ebbf2962dc55f3d534e2ce6401f69
# Parent  5e2fe5b7a96c3a1835de1cb72305be929e337db0
ECTP: fix stale issue with threads
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 5e2fe5b7a96c -r 36f5adc3895e src/Virt_ElementConformsToProfile.c
--- a/src/Virt_ElementConformsToProfile.c	Tue Feb 05 10:59:51 2008 +0100
+++ b/src/Virt_ElementConformsToProfile.c	Tue Feb 05 11:00:17 2008 +0100
@@ -192,13 +192,13 @@ static CMPIStatus elem_to_prof(const CMP
 
 LIBVIRT_CIM_DEFAULT_MAKEREF()
 
-char* conformant_standard[] = {
+static char* conformant_standard[] = {
         "Xen_RegisteredProfile",
         "KVM_RegisteredProfile",        
         NULL
 };
 
-char* managed_element[] = {
+static char* managed_element[] = {
         "Xen_HostSystem",
         "Xen_ComputerSystem",
         "KVM_HostSystem",
@@ -206,13 +206,13 @@ char* managed_element[] = {
         NULL
 };
 
-char* assoc_classname[] = {
+static char* assoc_classname[] = {
         "Xen_ElementConformsToProfile",
         "KVM_ElementConformsToProfile",        
         NULL
 };
 
-struct std_assoc forward = {
+static struct std_assoc forward = {
         .source_class = (char**)&conformant_standard,
         .source_prop = "ConformantStandard",
 
@@ -225,7 +225,7 @@ struct std_assoc forward = {
         .make_ref = make_ref
 };
 
-struct std_assoc backward = {
+static struct std_assoc backward = {
         .source_class = (char**)&managed_element,
         .source_prop = "ManagedElement",
 
@@ -238,7 +238,7 @@ struct std_assoc backward = {
         .make_ref = make_ref
 };
 
-struct std_assoc *assoc_handlers[] = {
+static struct std_assoc *assoc_handlers[] = {
         &forward,
         &backward,
         NULL




More information about the Libvirt-cim mailing list