ESX Whitespace cleanup

This commit is contained in:
Matthias Bolte
2009-09-23 14:37:26 +02:00
committed by Daniel Veillard
parent 15b0c4ffdb
commit 0d4d04e550
6 changed files with 31 additions and 31 deletions

View File

@@ -455,12 +455,12 @@ esxUtil_GetConfigLong(virConnectPtr conn, virConfPtr conf, const char *name,
int
esxUtil_GetConfigBoolean(virConnectPtr conn, virConfPtr conf,
const char *name, int *boolval, int default_,
const char *name, int *boolean_, int default_,
int optional)
{
virConfValuePtr value;
*boolval = default_;
*boolean_ = default_;
value = virConfGetValue(conf, name);
if (value == NULL) {
@@ -485,9 +485,9 @@ esxUtil_GetConfigBoolean(virConnectPtr conn, virConfPtr conf,
}
if (STRCASEEQ(value->str, "true")) {
*boolval = 1;
*boolean_ = 1;
} else if (STRCASEEQ(value->str, "false")) {
*boolval = 0;
*boolean_ = 0;
} else {
ESX_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
"Config entry '%s' must represent a boolean value "

View File

@@ -53,7 +53,7 @@ int esxUtil_GetConfigLong(virConnectPtr conn, virConfPtr conf, const char *name,
long long *number, long long default_, int optional);
int esxUtil_GetConfigBoolean(virConnectPtr conn, virConfPtr conf,
const char *name, int *boolean, int default_,
const char *name, int *boolean_, int default_,
int optional);
int esxUtil_EqualSuffix(const char *string, const char *suffix);

View File

@@ -765,6 +765,7 @@ esxVI_Enumeration_Deserialize(virConnectPtr conn,
failure:
result = -1;
goto cleanup;
}

View File

@@ -1010,7 +1010,6 @@ ESX_VI__TEMPLATE__SERIALIZE_EXTRA(Long, "xsd:long",
/* esxVI_Long_SerializeList */
ESX_VI__TEMPLATE__LIST__SERIALIZE(Long);
/* esxVI_Long_Deserialize */
ESX_VI__TEMPLATE__DESERIALIZE_NUMBER(Long, "xsd:long", INT64_MIN, INT64_MAX);
@@ -1394,7 +1393,7 @@ esxVI_ManagedObjectReference_Deserialize
}
if (expectedType != NULL &&
!STREQ(expectedType, (*managedObjectReference)->type)) {
STRNEQ(expectedType, (*managedObjectReference)->type)) {
ESX_VI_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
"Expected type '%s' but found '%s'", expectedType,
(*managedObjectReference)->type);