[libvirt] [PATCH 20/30] uml/: Remove spaces after casts

Martin Kletzander mkletzan at redhat.com
Wed Apr 25 13:24:57 UTC 2018


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 src/uml/uml_driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index b50ba1ba64ab..b0774b288e97 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -1338,7 +1338,7 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, pid_t pid)
     FILE *pidinfo;
     unsigned long long usertime, systime;
 
-    if (virAsprintf(&proc, "/proc/%lld/stat", (long long) pid) < 0)
+    if (virAsprintf(&proc, "/proc/%lld/stat", (long long)pid) < 0)
         return -1;
 
     if (!(pidinfo = fopen(proc, "r"))) {
@@ -2434,8 +2434,8 @@ umlDomainBlockPeek(virDomainPtr dom,
     /* NB. Because we configure with AC_SYS_LARGEFILE, off_t should
      * be 64 bits on all platforms.
      */
-    if (lseek(fd, offset, SEEK_SET) == (off_t) -1 ||
-        saferead(fd, buffer, size) == (ssize_t) -1) {
+    if (lseek(fd, offset, SEEK_SET) == (off_t)-1 ||
+        saferead(fd, buffer, size) == (ssize_t)-1) {
         virReportSystemError(errno,
                              _("cannot read %s"), path);
         goto cleanup;
-- 
2.17.0




More information about the libvir-list mailing list