{
g_autofree unsigned char *cpumaps = NULL;
size_t cpumaplen;
- int ncpus;
g_autoptr(virBitmap) vcpus = NULL;
ssize_t nextvcpu = -1;
bool first = true;
cpumaplen = VIR_CPU_MAPLEN(maxcpu);
cpumaps = vshMalloc(ctl, virBitmapSize(vcpus) * cpumaplen);
- if ((ncpus = virDomainGetVcpuPinInfo(dom, virBitmapSize(vcpus),
- cpumaps, cpumaplen,
- VIR_DOMAIN_AFFECT_CONFIG)) < 0)
+ if (virDomainGetVcpuPinInfo(dom, virBitmapSize(vcpus),
+ cpumaps, cpumaplen,
+ VIR_DOMAIN_AFFECT_CONFIG) < 0)
return false;
while ((nextvcpu = virBitmapNextSetBit(vcpus, nextvcpu)) >= 0) {
static bool
cmdDaemonLogFilters(vshControl *ctl, const vshCmd *cmd)
{
- int nfilters;
char *filters = NULL;
vshAdmControlPtr priv = ctl->privData;
return false;
}
} else {
- if ((nfilters = virAdmConnectGetLoggingFilters(priv->conn,
- &filters, 0)) < 0) {
+ if (virAdmConnectGetLoggingFilters(priv->conn,
+ &filters, 0) < 0) {
vshError(ctl, _("Unable to get daemon logging filters information"));
return false;
}
static bool
cmdDaemonLogOutputs(vshControl *ctl, const vshCmd *cmd)
{
- int noutputs;
char *outputs = NULL;
vshAdmControlPtr priv = ctl->privData;
return false;
}
} else {
- if ((noutputs = virAdmConnectGetLoggingOutputs(priv->conn,
- &outputs, 0)) < 0) {
+ if (virAdmConnectGetLoggingOutputs(priv->conn, &outputs, 0) < 0) {
vshError(ctl, _("Unable to get daemon logging outputs information"));
return false;
}