mirror of https://github.com/xqemu/xqemu.git
net: expand tabs in net/socket.c
In order to make later patches sane, expand the tab characters and conform to QEMU coding style now. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
bf95c0d55c
commit
842480d493
13
net/socket.c
13
net/socket.c
|
@ -161,7 +161,8 @@ static int net_socket_mcast_create(struct sockaddr_in *mcastaddr, struct in_addr
|
|||
#endif
|
||||
|
||||
if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) {
|
||||
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) does not contain a multicast address\n",
|
||||
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) "
|
||||
"does not contain a multicast address\n",
|
||||
inet_ntoa(mcastaddr->sin_addr),
|
||||
(int)ntohl(mcastaddr->sin_addr.s_addr));
|
||||
return -1;
|
||||
|
@ -263,8 +264,8 @@ static NetSocketState *net_socket_fd_init_dgram(VLANState *vlan,
|
|||
if (getsockname(fd, (struct sockaddr *) &saddr, &saddr_len) == 0) {
|
||||
/* must be bound */
|
||||
if (saddr.sin_addr.s_addr == 0) {
|
||||
fprintf(stderr, "qemu: error: init_dgram: fd=%d unbound, cannot setup multicast dst addr\n",
|
||||
fd);
|
||||
fprintf(stderr, "qemu: error: init_dgram: fd=%d unbound, "
|
||||
"cannot setup multicast dst addr\n", fd);
|
||||
return NULL;
|
||||
}
|
||||
/* clone dgram socket */
|
||||
|
@ -279,7 +280,8 @@ static NetSocketState *net_socket_fd_init_dgram(VLANState *vlan,
|
|||
close(newfd);
|
||||
|
||||
} else {
|
||||
fprintf(stderr, "qemu: error: init_dgram: fd=%d failed getsockname(): %s\n",
|
||||
fprintf(stderr,
|
||||
"qemu: error: init_dgram: fd=%d failed getsockname(): %s\n",
|
||||
fd, strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -349,7 +351,8 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan,
|
|||
|
||||
if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type,
|
||||
(socklen_t *)&optlen)< 0) {
|
||||
fprintf(stderr, "qemu: error: getsockopt(SO_TYPE) for fd=%d failed\n", fd);
|
||||
fprintf(stderr, "qemu: error: getsockopt(SO_TYPE) for fd=%d failed\n",
|
||||
fd);
|
||||
return NULL;
|
||||
}
|
||||
switch(so_type) {
|
||||
|
|
Loading…
Reference in New Issue