格式错误修订

This commit is contained in:
NightIsDark 2021-05-31 10:17:56 +08:00 committed by guo
parent ce7d1c6ca6
commit 550ad698e0
1 changed files with 2 additions and 2 deletions

View File

@ -619,8 +619,8 @@ int sal_accept(int socket, struct sockaddr *addr, socklen_t *addrlen)
LOG_E("New socket registered failed, return error %d.", retval); LOG_E("New socket registered failed, return error %d.", retval);
return -1; return -1;
} }
/* new socket create by accept should have the same netdev with server*/ /* new socket create by accept should have the same netdev with server*/
new_sock->netdev = sock->netdev; new_sock->netdev = sock->netdev;
/* socket structure user_data used to store the acquired new socket */ /* socket structure user_data used to store the acquired new socket */
new_sock->user_data = (void *) new_socket; new_sock->user_data = (void *) new_socket;