Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/rpc/virnetclientstream.c | 4 ++--
src/rpc/virnetserverclient.c | 2 +-
src/rpc/virnetserverprogram.c | 2 +-
src/rpc/virnetsocket.c | 6 +++---
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/rpc/virnetclientstream.c b/src/rpc/virnetclientstream.c
index 7b8b4e5c89f6..05d76c9b87f8 100644
--- a/src/rpc/virnetclientstream.c
+++ b/src/rpc/virnetclientstream.c
@@ -440,7 +440,7 @@ virNetClientStreamHandleHole(virNetClientPtr client,
}
if (virNetMessageDecodePayload(msg,
- (xdrproc_t) xdr_virNetStreamHole,
+ (xdrproc_t)xdr_virNetStreamHole,
&data) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Malformed stream hole packet"));
@@ -625,7 +625,7 @@ virNetClientStreamSendHole(virNetClientStreamPtr st,
goto cleanup;
if (virNetMessageEncodePayload(msg,
- (xdrproc_t) xdr_virNetStreamHole,
+ (xdrproc_t)xdr_virNetStreamHole,
&data) < 0)
goto cleanup;
diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c
index b373ca1a8b48..f3bc0a48548f 100644
--- a/src/rpc/virnetserverclient.c
+++ b/src/rpc/virnetserverclient.c
@@ -472,7 +472,7 @@ virNetServerClientPtr virNetServerClientNew(unsigned long long id,
#endif
);
- if ((now = time(NULL)) == (time_t) - 1) {
+ if ((now = time(NULL)) == (time_t)- 1) {
virReportSystemError(errno, "%s", _("failed to get current
time"));
return NULL;
}
diff --git a/src/rpc/virnetserverprogram.c b/src/rpc/virnetserverprogram.c
index b04c36d3aacb..8d2c34058b53 100644
--- a/src/rpc/virnetserverprogram.c
+++ b/src/rpc/virnetserverprogram.c
@@ -575,7 +575,7 @@ int virNetServerProgramSendStreamHole(virNetServerProgramPtr prog,
return -1;
if (virNetMessageEncodePayload(msg,
- (xdrproc_t) xdr_virNetStreamHole,
+ (xdrproc_t)xdr_virNetStreamHole,
&data) < 0)
return -1;
diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
index f253eb260500..7087abec9c5d 100644
--- a/src/rpc/virnetsocket.c
+++ b/src/rpc/virnetsocket.c
@@ -231,7 +231,7 @@ static virNetSocketPtr virNetSocketNew(virSocketAddrPtr localAddr,
VIR_DEBUG("localAddr=%p remoteAddr=%p fd=%d errfd=%d pid=%lld",
localAddr, remoteAddr,
- fd, errfd, (long long) pid);
+ fd, errfd, (long long)pid);
if (virSetCloseExec(fd) < 0) {
virReportSystemError(errno, "%s",
@@ -286,7 +286,7 @@ static virNetSocketPtr virNetSocketNew(virSocketAddrPtr localAddr,
PROBE(RPC_SOCKET_NEW,
"sock=%p fd=%d errfd=%d pid=%lld localAddr=%s, remoteAddr=%s",
- sock, fd, errfd, (long long) pid,
+ sock, fd, errfd, (long long)pid,
NULLSTR(sock->localAddrStrSASL), NULLSTR(sock->remoteAddrStrSASL));
return sock;
@@ -486,7 +486,7 @@ int virNetSocketNewListenUNIX(const char *path,
if (grp != 0 && chown(path, user, grp)) {
virReportSystemError(errno,
_("Failed to change ownership of '%s' to
%d:%d"),
- path, (int) user, (int) grp);
+ path, (int)user, (int)grp);
goto error;
}
--
2.17.0