--without-openvz \
--without-one \
--without-phyp \
- --without-esx \
--without-netcf \
--without-libvirtd
--without-openvz \
--without-one \
--without-phyp \
- --without-esx \
--without-netcf \
--without-libvirtd
make
#include <config.h>
-#define __STDC_FORMAT_MACROS
-#include <inttypes.h>
-
#include <netdb.h>
#include "internal.h"
for (value = perfMetricIntSeries->value;
value != NULL;
value = value->_next) {
- VIR_DEBUG("value %"PRIi64, value->value);
+ VIR_DEBUG("value %lld", (long long int)value->value);
}
}
}
default:
ESX_ERROR(domain->conn, VIR_ERR_INTERNAL_ERROR,
- "Shares level has unknown value %"PRIi32,
- sharesInfo->level);
+ "Shares level has unknown value %d",
+ (int)sharesInfo->level);
goto failure;
}
virReportErrorHelper (conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__, \
__LINE__, fmt)
+/* AI_ADDRCONFIG is missing on some systems. */
+#ifndef AI_ADDRCONFIG
+# define AI_ADDRCONFIG 0
+#endif
char *
int
esxUtil_GetConfigBoolean(virConnectPtr conn, virConfPtr conf,
- const char *name, int *boolean, int default_,
+ const char *name, int *boolval, int default_,
int optional)
{
virConfValuePtr value;
- *boolean = default_;
+ *boolval = default_;
value = virConfGetValue(conf, name);
if (value == NULL) {
}
if (STRCASEEQ(value->str, "true")) {
- *boolean = 1;
+ *boolval = 1;
} else if (STRCASEEQ(value->str, "false")) {
- *boolean = 0;
+ *boolval = 0;
} else {
ESX_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
"Config entry '%s' must represent a boolean value "
#include <config.h>
-#define __STDC_FORMAT_MACROS
-#include <inttypes.h>
-
#include <libxml/parser.h>
#include <libxml/xpathInternals.h>
/* esxVI_Int_Serialize */
ESX_VI__TEMPLATE__SERIALIZE_EXTRA(Int, "xsd:int",
{
- virBufferVSprintf(output, "%"PRIi32, item->value);
+ virBufferVSprintf(output, "%d", (int)item->value);
});
/* esxVI_Int_SerializeList */
/* esxVI_Long_Serialize */
ESX_VI__TEMPLATE__SERIALIZE_EXTRA(Long, "xsd:long",
{
- virBufferVSprintf(output, "%"PRIi64, item->value);
+ virBufferVSprintf(output, "%lld", (long long int)item->value);
});
/* esxVI_Long_SerializeList */