[PATCH 10/30] lxc/: Remove spaces after casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/lxc/lxc_cgroup.c     | 2 +-
 src/lxc/lxc_controller.c | 4 ++--
 src/lxc/lxc_domain.c     | 4 ++--
 src/lxc/lxc_driver.c     | 4 ++--
 src/lxc/lxc_monitor.c    | 2 +-
 src/lxc/lxc_native.c     | 4 ++--
 src/lxc/lxc_process.c    | 4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c
index 336980187035..8e937ec38985 100644
--- a/src/lxc/lxc_cgroup.c
+++ b/src/lxc/lxc_cgroup.c
@@ -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;
 }
diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c
index 507bffda09ba..d5636b808c79 100644
--- a/src/lxc/lxc_controller.c
+++ b/src/lxc/lxc_controller.c
@@ -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;
 
diff --git a/src/lxc/lxc_domain.c b/src/lxc/lxc_domain.c
index d23969a585f4..b197f9dfc280 100644
--- a/src/lxc/lxc_domain.c
+++ b/src/lxc/lxc_domain.c
@@ -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;
 }
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index ca01d369d581..dd4e28fc7f70 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -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;
         }
     }
diff --git a/src/lxc/lxc_monitor.c b/src/lxc/lxc_monitor.c
index a569e4184909..e765c167117f 100644
--- a/src/lxc/lxc_monitor.c
+++ b/src/lxc/lxc_monitor.c
@@ -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);
 }
diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c
index fdc03a57eaaf..55ea7748f4f8 100644
--- a/src/lxc/lxc_native.c
+++ b/src/lxc/lxc_native.c
@@ -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;
     }
 
diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c
index e911d88b5636..0579fef83633 100644
--- a/src/lxc/lxc_process.c
+++ b/src/lxc/lxc_process.c
@@ -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();
     }
-- 
2.17.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux