#include "uuid.h"
#include "logging.h"
#include "memory.h"
+#include "ignore-value.h"
/* Return nn:mm in hex for block and character devices, and NULL
* for other file types, stat failure, or allocation failure. */
return;
}
- virCgroupPathOfController(cgroup, VIR_CGROUP_CONTROLLER_DEVICES,
- NULL, &controller);
+ ignore_value(virCgroupPathOfController(cgroup,
+ VIR_CGROUP_CONTROLLER_DEVICES,
+ NULL, &controller));
detail = virAuditEncode("cgroup", VIR_AUDIT_STR(controller));
VIR_AUDIT(VIR_AUDIT_RECORD_RESOURCE, success,
if (VIR_ALLOC(cmd) < 0)
goto no_memory;
- virUUIDGenerate(def->uuid);
+ if (virUUIDGenerate(def->uuid) < 0) {
+ qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("failed to generate uuid"));
+ goto error;
+ }
def->id = -1;
def->mem.cur_balloon = def->mem.max_balloon = 64 * 1024;
qemuMonitorLock(priv->mon);
qemuMonitorRef(priv->mon);
- virTimeMs(&priv->monStart);
+ ignore_value(virTimeMs(&priv->monStart));
virDomainObjUnlock(obj);
}
qemuMonitorLock(priv->mon);
qemuMonitorRef(priv->mon);
- virTimeMs(&priv->monStart);
+ ignore_value(virTimeMs(&priv->monStart));
virDomainObjUnlock(obj);
qemuDriverUnlock(driver);
}