提交 8aece9bc 编写于 作者: M Martin Kletzander

uml/: Remove spaces after casts

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 86137d71
...@@ -1338,7 +1338,7 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, pid_t pid) ...@@ -1338,7 +1338,7 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, pid_t pid)
FILE *pidinfo; FILE *pidinfo;
unsigned long long usertime, systime; 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; return -1;
if (!(pidinfo = fopen(proc, "r"))) { if (!(pidinfo = fopen(proc, "r"))) {
...@@ -2434,8 +2434,8 @@ umlDomainBlockPeek(virDomainPtr dom, ...@@ -2434,8 +2434,8 @@ umlDomainBlockPeek(virDomainPtr dom,
/* NB. Because we configure with AC_SYS_LARGEFILE, off_t should /* NB. Because we configure with AC_SYS_LARGEFILE, off_t should
* be 64 bits on all platforms. * be 64 bits on all platforms.
*/ */
if (lseek(fd, offset, SEEK_SET) == (off_t) -1 || if (lseek(fd, offset, SEEK_SET) == (off_t)-1 ||
saferead(fd, buffer, size) == (ssize_t) -1) { saferead(fd, buffer, size) == (ssize_t)-1) {
virReportSystemError(errno, virReportSystemError(errno,
_("cannot read %s"), path); _("cannot read %s"), path);
goto cleanup; goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册