# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1195493553 28800
# Node ID ea31aaa60fb3f4164ee296c349d45e73a36149a5
# Parent ca32e4299b0944be44ec5bf9821a087857ca37a9
Make SettingsDefineCapabilities use connect_by_classname()
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r ca32e4299b09 -r ea31aaa60fb3 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Mon Nov 19 09:31:06 2007 -0800
+++ b/src/Virt_SettingsDefineCapabilities.c Mon Nov 19 09:32:33 2007 -0800
@@ -232,7 +232,7 @@ static struct sdc_rasd_prop *proc_max(co
CU_DEBUG("In proc_max()");
- conn = lv_connect(_BROKER, s);
+ conn = connect_by_classname(_BROKER, CLASSNAME(ref), s);
if (conn == NULL) {
cu_statusf(_BROKER, s,
CMPI_RC_ERR_FAILED,
@@ -346,7 +346,7 @@ static uint16_t net_max_xen(const CMPIOb
unsigned long version;
uint16_t num_nics = -1;
- conn = lv_connect(_BROKER, s);
+ conn = connect_by_classname(_BROKER, CLASSNAME(ref), s);
if (s->rc != CMPI_RC_OK) {
cu_statusf(_BROKER, s,
CMPI_RC_ERR_FAILED,
@@ -515,7 +515,7 @@ static struct sdc_rasd_prop *disk_max(co
goto out;
}
- conn = lv_connect(_BROKER, s);
+ conn = connect_by_classname(_BROKER, CLASSNAME(ref), s);
if (s->rc != CMPI_RC_OK) {
cu_statusf(_BROKER, s,
CMPI_RC_ERR_FAILED,