# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1202205720 -3600
# Node ID f0b4c691abc5da51dce9ba8528bd3fc0769e4cde
# Parent aac8a4de2503eabddd5a734d034bddd4bae3d482
SDC: fix stale issue with threads
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r aac8a4de2503 -r f0b4c691abc5 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Tue Feb 05 11:01:18 2008 +0100
+++ b/src/Virt_SettingsDefineCapabilities.c Tue Feb 05 11:02:00 2008 +0100
@@ -827,13 +827,13 @@ static CMPIStatus rasd_to_alloc_cap(cons
LIBVIRT_CIM_DEFAULT_MAKEREF()
-char* group_component[] = {
+static char* group_component[] = {
"Xen_AllocationCapabilities",
"KVM_AllocationCapabilities",
NULL
};
-char* part_component[] = {
+static char* part_component[] = {
"Xen_DiskResourceAllocationSettingData",
"Xen_MemResourceAllocationSettingData",
"Xen_NetResourceAllocationSettingData",
@@ -845,13 +845,13 @@ char* part_component[] = {
NULL
};
-char* assoc_classname[] = {
+static char* assoc_classname[] = {
"Xen_SettingsDefineCapabilities",
"KVM_SettingsDefineCapabilities",
NULL
};
-struct std_assoc _alloc_cap_to_rasd = {
+static struct std_assoc _alloc_cap_to_rasd = {
.source_class = (char**)&group_component,
.source_prop = "GroupComponent",
@@ -864,7 +864,7 @@ struct std_assoc _alloc_cap_to_rasd = {
.make_ref = make_ref
};
-struct std_assoc _rasd_to_alloc_cap = {
+static struct std_assoc _rasd_to_alloc_cap = {
.source_class = (char**)&part_component,
.source_prop = "PartComponent",
@@ -877,7 +877,7 @@ struct std_assoc _rasd_to_alloc_cap = {
.make_ref = make_ref
};
-struct std_assoc *assoc_handlers[] = {
+static struct std_assoc *assoc_handlers[] = {
&_alloc_cap_to_rasd,
&_rasd_to_alloc_cap,
NULL