# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1202208798 -3600
# Node ID 1208c17a1a11df7fd3fa118c6f222c95f4efd083
# Parent c49e722599eee4b1fb6296b1da6e64c0d879d829
SDC: fix stale issue with threads
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r c49e722599ee -r 1208c17a1a11 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Tue Feb 05 11:53:17 2008 +0100
+++ b/src/Virt_SettingsDefineCapabilities.c Tue Feb 05 11:53:18 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