[Libvirt-cim] [PATCH 05 of 11] HRP: fix stale issue with threads

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


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1202205659 -3600
# Node ID 73c3b0b5eb89308ba4e700c942ac23575d687263
# Parent  58a4e8db2a0e326d8a34bcc9191a09b9216a1e8c
HRP: fix stale issue with threads
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 58a4e8db2a0e -r 73c3b0b5eb89 src/Virt_HostedResourcePool.c
--- a/src/Virt_HostedResourcePool.c	Tue Feb 05 11:00:17 2008 +0100
+++ b/src/Virt_HostedResourcePool.c	Tue Feb 05 11:00:59 2008 +0100
@@ -94,13 +94,13 @@ static CMPIStatus sys_to_pool(const CMPI
 
 LIBVIRT_CIM_DEFAULT_MAKEREF()
 
-char* group_component[] = {
+static char* group_component[] = {
         "Xen_HostSystem",
         "KVM_HostSystem",
         NULL
 };
 
-char* part_component[] = {
+static char* part_component[] = {
         "Xen_ProcessorPool",
         "Xen_MemoryPool",
         "Xen_NetworkPool",
@@ -112,13 +112,13 @@ char* part_component[] = {
         NULL
 };
 
-char* assoc_classname[] = {
+static char* assoc_classname[] = {
         "Xen_HostedResourcePool",
         "KVM_HostedResourcePool",        
         NULL
 };
 
-struct std_assoc forward = {
+static struct std_assoc forward = {
         .source_class = (char**)&part_component,
         .source_prop = "PartComponent",
 
@@ -131,7 +131,7 @@ struct std_assoc forward = {
         .make_ref = make_ref
 };
 
-struct std_assoc backward = {
+static struct std_assoc backward = {
         .source_class = (char**)&group_component,
         .source_prop = "GroupComponent",
 
@@ -144,7 +144,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