[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/7] muitlfd: Correcting nit : whitespace error changes in qem
From: |
Het Gala |
Subject: |
[PATCH v2 6/7] muitlfd: Correcting nit : whitespace error changes in qemu-sockets.c file |
Date: |
Thu, 21 Jul 2022 19:56:19 +0000 |
Suggested-by: Manish Mishra <manish.mishra@nutanix.com>
Signed-off-by: Het Gala <het.gala@nutanix.com>
---
util/qemu-sockets.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 491e2f2bc9..724c081e6c 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -52,10 +52,10 @@ static int inet_getport(struct addrinfo *e)
switch (e->ai_family) {
case PF_INET6:
- i6 = (void*)e->ai_addr;
+ i6 = (void *)e->ai_addr;
return ntohs(i6->sin6_port);
case PF_INET:
- i4 = (void*)e->ai_addr;
+ i4 = (void *)e->ai_addr;
return ntohs(i4->sin_port);
default:
return 0;
@@ -69,11 +69,11 @@ static void inet_setport(struct addrinfo *e, int port)
switch (e->ai_family) {
case PF_INET6:
- i6 = (void*)e->ai_addr;
+ i6 = (void *)e->ai_addr;
i6->sin6_port = htons(port);
break;
case PF_INET:
- i4 = (void*)e->ai_addr;
+ i4 = (void *)e->ai_addr;
i4->sin_port = htons(port);
break;
}
@@ -210,9 +210,9 @@ static int inet_listen_saddr(InetSocketAddress *saddr,
int num,
Error **errp)
{
- struct addrinfo ai,*res,*e;
+ struct addrinfo ai, *res, *e;
char port[33];
- char uaddr[INET6_ADDRSTRLEN+1];
+ char uaddr[INET6_ADDRSTRLEN + 1];
char uport[33];
int rc, port_min, port_max, p;
int slisten = -1;
@@ -226,7 +226,7 @@ static int inet_listen_saddr(InetSocketAddress *saddr,
return -1;
}
- memset(&ai,0, sizeof(ai));
+ memset(&ai, 0, sizeof(ai));
ai.ai_flags = AI_PASSIVE;
if (saddr->has_numeric && saddr->numeric) {
ai.ai_flags |= AI_NUMERICHOST | AI_NUMERICSERV;
@@ -282,8 +282,8 @@ static int inet_listen_saddr(InetSocketAddress *saddr,
e->ai_protocol = IPPROTO_MPTCP;
}
#endif
- getnameinfo((struct sockaddr*)e->ai_addr,e->ai_addrlen,
- uaddr,INET6_ADDRSTRLEN,uport,32,
+ getnameinfo((struct sockaddr *)e->ai_addr, e->ai_addrlen,
+ uaddr, INET6_ADDRSTRLEN, uport, 32,
NI_NUMERICHOST | NI_NUMERICSERV);
port_min = inet_getport(e);
@@ -548,7 +548,7 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,
Error *err = NULL;
/* lookup peer addr */
- memset(&ai,0,sizeof(ai));
+ memset(&ai, 0, sizeof(ai));
ai.ai_flags = AI_CANONNAME | AI_V4MAPPED | AI_ADDRCONFIG;
ai.ai_family = inet_ai_family_from_address(sraddr, &err);
ai.ai_socktype = SOCK_DGRAM;
@@ -575,7 +575,7 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,
}
/* lookup local addr */
- memset(&ai,0, sizeof(ai));
+ memset(&ai, 0, sizeof(ai));
ai.ai_flags = AI_PASSIVE;
ai.ai_family = peer->ai_family;
ai.ai_socktype = SOCK_DGRAM;
@@ -616,7 +616,7 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,
}
/* connect to peer */
- if (connect(sock,peer->ai_addr,peer->ai_addrlen) < 0) {
+ if (connect(sock, peer->ai_addr, peer->ai_addrlen) < 0) {
error_setg_errno(errp, errno, "Failed to connect to '%s:%s'",
addr, port);
goto err;
--
2.22.3
- [PATCH v2 0/7] multifd: Multiple interface support on top of Multifd, Het Gala, 2022/07/21
- [PATCH v2 2/7] multifd: modifying 'migrate' qmp command to add multifd socket on particular src and dest pair, Het Gala, 2022/07/21
- [PATCH v2 4/7] multifd: HMP changes for multifd source and destination side, Het Gala, 2022/07/21
- [PATCH v2 3/7] multifd: adding multi-interface support for multifd on destination side, Het Gala, 2022/07/21
- [PATCH v2 6/7] muitlfd: Correcting nit : whitespace error changes in qemu-sockets.c file,
Het Gala <=
- [PATCH v2 5/7] multifd: establishing connection between any non-default src and dest pair, Het Gala, 2022/07/21
- [PATCH v2 1/7] multifd: adding more helper functions in util files for live migration, Het Gala, 2022/07/21
- [PATCH v2 7/7] multifd: adding support for multifd connections dynamically, Het Gala, 2022/07/21