提交 acedcfbf 编写于 作者: M Michael S. Tsirkin 提交者: Blue Swirl

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: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 e8bbe36c
...@@ -2044,7 +2044,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan, ...@@ -2044,7 +2044,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan,
const char *model, const char *name, const char *model, const char *name,
int fd, int is_connected) 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, if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type,
(socklen_t *)&optlen)< 0) { (socklen_t *)&optlen)< 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册