mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
net: fix coding style nit
Put space between = and - assigning a negative number to avoid confusion with old-style "-=" (which we also have, and need to be fixed). Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
e8bbe36c03
commit
acedcfbf7a
1 changed files with 1 additions and 1 deletions
2
net.c
2
net.c
|
|
@ -2044,7 +2044,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan,
|
|||
const char *model, const char *name,
|
||||
int fd, int is_connected)
|
||||
{
|
||||
int so_type=-1, optlen=sizeof(so_type);
|
||||
int so_type = -1, optlen=sizeof(so_type);
|
||||
|
||||
if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type,
|
||||
(socklen_t *)&optlen)< 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue