mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
rpc/: 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
5b912664c6
commit
b63d30d601
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user