Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- src/lxc/lxc_container.c | 4 ++-- src/lxc/lxc_controller.c | 4 ++-- src/lxc/lxc_fuse.c | 2 +- src/lxc/lxc_process.c | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 665b93a0accf..8cd177556af1 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -232,7 +232,7 @@ static virCommandPtr lxcContainerBuildInitCmd(virDomainDefPtr vmDef, cmd = virCommandNew(vmDef->os.init); if (vmDef->os.initargv && vmDef->os.initargv[0]) - virCommandAddArgSet(cmd, (const char **)vmDef->os.initargv); + virCommandAddArgSet(cmd, (const char **) vmDef->os.initargv); virCommandAddEnvString(cmd, "PATH=/bin:/sbin"); virCommandAddEnvString(cmd, "TERM=linux"); @@ -2104,7 +2104,7 @@ static int lxcContainerDropCapabilities(virDomainDefPtr def ATTRIBUTE_UNUSED, static int lxcAttachNS(int *ns_fd) { if (ns_fd && - virProcessSetNamespaces((size_t)VIR_LXC_DOMAIN_NAMESPACE_LAST, + virProcessSetNamespaces((size_t) VIR_LXC_DOMAIN_NAMESPACE_LAST, ns_fd) < 0) return -1; return 0; diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 507bffda09ba..fc16f427fc6b 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -1231,7 +1231,7 @@ static void virLXCControllerConsoleIO(int watch, int fd, int events, void *opaqu if (done > 0) { *len += done; } else { - VIR_DEBUG("Read fd %d done %d errno %d", fd, (int)done, errno); + VIR_DEBUG("Read fd %d done %d errno %d", fd, (int) done, errno); } } @@ -1260,7 +1260,7 @@ static void virLXCControllerConsoleIO(int watch, int fd, int events, void *opaqu memmove(buf, buf + done, (*len - done)); *len -= done; } else { - VIR_DEBUG("Write fd %d done %d errno %d", fd, (int)done, errno); + VIR_DEBUG("Write fd %d done %d errno %d", fd, (int) done, errno); } } diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 60d41243a99e..b8f7d17275de 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -356,7 +356,7 @@ int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def) int lxcStartFuse(virLXCFusePtr fuse) { if (virThreadCreate(&fuse->thread, false, lxcFuseRun, - (void *)fuse) < 0) { + (void *) fuse) < 0) { lxcFuseDestroy(fuse); return -1; } diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index e911d88b5636..5be8732ef422 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -168,7 +168,7 @@ static void virLXCProcessCleanup(virLXCDriverPtr driver, virLXCDriverConfigPtr cfg = virLXCDriverGetConfig(driver); VIR_DEBUG("Cleanup VM name=%s pid=%d reason=%d", - vm->def->name, (int)vm->pid, (int)reason); + vm->def->name, (int) vm->pid, (int) reason); /* now that we know it's stopped call the hook if present */ if (virHookPresent(VIR_HOOK_DRIVER_LXC)) { @@ -403,7 +403,7 @@ static int virLXCProcessSetupNamespaceName(virConnectPtr conn, int ns_type, cons } if (virAsprintf(&path, "/proc/%lld/ns/%s", - (long long int)priv->initpid, + (long long int) priv->initpid, nsInfoLocal[ns_type]) < 0) goto cleanup; @@ -833,7 +833,7 @@ int virLXCProcessStop(virLXCDriverPtr driver, virLXCDomainObjPrivatePtr priv; VIR_DEBUG("Stopping VM name=%s pid=%d reason=%d", - vm->def->name, (int)vm->pid, (int)reason); + vm->def->name, (int) vm->pid, (int) reason); if (!virDomainObjIsActive(vm)) { VIR_DEBUG("VM '%s' not active", vm->def->name); return 0; @@ -890,7 +890,7 @@ int virLXCProcessStop(virLXCDriverPtr driver, * libvirt_lxc process */ if (virProcessKillPainfully(vm->pid, true) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Processes %d refused to die"), (int)vm->pid); + _("Processes %d refused to die"), (int) vm->pid); return -1; } } @@ -1115,7 +1115,7 @@ virLXCProcessReadLogOutput(virDomainObjPtr vm, if (lseek(fd, pos, SEEK_SET) < 0) { virReportSystemError(errno, _("Unable to seek log file %s to %llu"), - logfile, (unsigned long long)pos); + logfile, (unsigned long long) pos); VIR_FORCE_CLOSE(fd); return -1; } -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list