mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
lxc/: Remove spaces after casts
Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4d9114f70a
commit
aa2c1a16ba
@ -204,7 +204,7 @@ static int virLXCCgroupGetMemUsage(virCgroupPtr cgroup,
|
||||
unsigned long memUsage;
|
||||
|
||||
ret = virCgroupGetMemoryUsage(cgroup, &memUsage);
|
||||
meminfo->memusage = (unsigned long long) memUsage;
|
||||
meminfo->memusage = (unsigned long long)memUsage;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1028,7 +1028,7 @@ static void virLXCControllerSignalChildIO(virNetDaemonPtr dmn,
|
||||
int status;
|
||||
|
||||
ret = waitpid(-1, &status, WNOHANG);
|
||||
VIR_DEBUG("Got sig child %d vs %lld", ret, (long long) ctrl->initpid);
|
||||
VIR_DEBUG("Got sig child %d vs %lld", ret, (long long)ctrl->initpid);
|
||||
if (ret == ctrl->initpid) {
|
||||
virNetDaemonQuit(dmn);
|
||||
virMutexLock(&lock);
|
||||
@ -2307,7 +2307,7 @@ virLXCControllerEventSendInit(virLXCControllerPtr ctrl,
|
||||
{
|
||||
virLXCMonitorInitEventMsg msg;
|
||||
|
||||
VIR_DEBUG("Init pid %lld", (long long) initpid);
|
||||
VIR_DEBUG("Init pid %lld", (long long)initpid);
|
||||
memset(&msg, 0, sizeof(msg));
|
||||
msg.initpid = initpid;
|
||||
|
||||
|
@ -234,7 +234,7 @@ lxcDomainDefNamespaceParse(xmlDocPtr xml ATTRIBUTE_UNUSED,
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
if ((feature = virLXCDomainNamespaceTypeFromString(
|
||||
(const char *) nodes[i]->name)) < 0) {
|
||||
(const char *)nodes[i]->name)) < 0) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unsupported Namespace feature: %s"),
|
||||
nodes[i]->name);
|
||||
@ -330,7 +330,7 @@ virLXCDomainObjPrivateXMLFormat(virBufferPtr buf,
|
||||
virLXCDomainObjPrivatePtr priv = vm->privateData;
|
||||
|
||||
virBufferAsprintf(buf, "<init pid='%lld'/>\n",
|
||||
(long long) priv->initpid);
|
||||
(long long)priv->initpid);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -3427,7 +3427,7 @@ lxcDomainShutdownFlags(virDomainPtr dom,
|
||||
errno != ESRCH) {
|
||||
virReportSystemError(errno,
|
||||
_("Unable to send SIGTERM to init pid %llu"),
|
||||
(long long) priv->initpid);
|
||||
(long long)priv->initpid);
|
||||
goto endjob;
|
||||
}
|
||||
}
|
||||
@ -3510,7 +3510,7 @@ lxcDomainReboot(virDomainPtr dom,
|
||||
errno != ESRCH) {
|
||||
virReportSystemError(errno,
|
||||
_("Unable to send SIGTERM to init pid %llu"),
|
||||
(long long) priv->initpid);
|
||||
(long long)priv->initpid);
|
||||
goto endjob;
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ virLXCMonitorHandleEventInit(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
|
||||
virLXCMonitorPtr mon = opaque;
|
||||
virLXCMonitorInitEventMsg *msg = evdata;
|
||||
|
||||
VIR_DEBUG("Event init %lld", (long long) msg->initpid);
|
||||
VIR_DEBUG("Event init %lld", (long long)msg->initpid);
|
||||
if (mon->cb.initNotify)
|
||||
mon->cb.initNotify(mon, (pid_t)msg->initpid, mon->vm);
|
||||
}
|
||||
|
@ -299,7 +299,7 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)
|
||||
type = VIR_DOMAIN_FS_TYPE_BLOCK;
|
||||
|
||||
/* Do we have ro in options? */
|
||||
readonly = virStringListHasString((const char **) options, "ro");
|
||||
readonly = virStringListHasString((const char **)options, "ro");
|
||||
|
||||
if (lxcAddFSDef(def, type, src, dst, readonly, usage) < 0)
|
||||
goto cleanup;
|
||||
@ -982,7 +982,7 @@ lxcSetCapDrop(virDomainDefPtr def, virConfPtr properties)
|
||||
for (i = 0; i < VIR_DOMAIN_CAPS_FEATURE_LAST; i++) {
|
||||
capString = virDomainCapsFeatureTypeToString(i);
|
||||
if (toDrop != NULL &&
|
||||
virStringListHasString((const char **) toDrop, capString))
|
||||
virStringListHasString((const char **)toDrop, capString))
|
||||
def->caps_features[i] = VIR_TRISTATE_SWITCH_OFF;
|
||||
}
|
||||
|
||||
|
@ -737,7 +737,7 @@ virLXCProcessGetNsInode(pid_t pid,
|
||||
int ret = -1;
|
||||
|
||||
if (virAsprintf(&path, "/proc/%lld/ns/%s",
|
||||
(long long) pid, nsname) < 0)
|
||||
(long long)pid, nsname) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (stat(path, &sb) < 0) {
|
||||
@ -773,7 +773,7 @@ static void virLXCProcessMonitorInitNotify(virLXCMonitorPtr mon ATTRIBUTE_UNUSED
|
||||
|
||||
if (virLXCProcessGetNsInode(initpid, "pid", &inode) < 0) {
|
||||
VIR_WARN("Cannot obtain pid NS inode for %lld: %s",
|
||||
(long long) initpid,
|
||||
(long long)initpid,
|
||||
virGetLastErrorMessage());
|
||||
virResetLastError();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user