Skip to content
Snippets Groups Projects
Commit acedcfbf authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Blue Swirl
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent e8bbe36c
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment