Merge pull request #3587 from luhuadong/develop

fixed some typos
This commit is contained in:
Bernard Xiong 2020-05-09 14:37:54 +08:00 committed by GitHub
commit b2b8887cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -744,7 +744,7 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
goto __exit; goto __exit;
} }
/* if the socket type is UDP, nead to connect socket first */ /* if the socket type is UDP, need to connect socket first */
if (from && sock->type == AT_SOCKET_UDP && sock->state == AT_SOCKET_OPEN) if (from && sock->type == AT_SOCKET_UDP && sock->state == AT_SOCKET_OPEN)
{ {
ip_addr_t remote_addr; ip_addr_t remote_addr;

View File

@ -1087,7 +1087,7 @@ int netdev_cmd_ping(char* target_name, rt_uint32_t times, rt_size_t size)
} }
} }
/* if the response time is more than NETDEV_PING_DELAY, no nead to delay */ /* if the response time is more than NETDEV_PING_DELAY, no need to delay */
delay_tick = ((rt_tick_get() - start_tick) > NETDEV_PING_DELAY) || (index == times) ? 0 : NETDEV_PING_DELAY; delay_tick = ((rt_tick_get() - start_tick) > NETDEV_PING_DELAY) || (index == times) ? 0 : NETDEV_PING_DELAY;
rt_thread_delay(delay_tick); rt_thread_delay(delay_tick);
} }

View File

@ -679,7 +679,7 @@ int sal_shutdown(int socket, int how)
/* get the socket object by socket descriptor */ /* get the socket object by socket descriptor */
SAL_SOCKET_OBJ_GET(sock, socket); SAL_SOCKET_OBJ_GET(sock, socket);
/* shutdown operation not nead to check network interface status */ /* shutdown operation not need to check network interface status */
/* check the network interface socket opreation */ /* check the network interface socket opreation */
SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, shutdown); SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, shutdown);
@ -970,7 +970,7 @@ int sal_closesocket(int socket)
/* get the socket object by socket descriptor */ /* get the socket object by socket descriptor */
SAL_SOCKET_OBJ_GET(sock, socket); SAL_SOCKET_OBJ_GET(sock, socket);
/* clsoesocket operation not nead to vaild network interface status */ /* clsoesocket operation not need to vaild network interface status */
/* valid the network interface socket opreation */ /* valid the network interface socket opreation */
SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, socket); SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, socket);