Skip to content

Commit b2b8887

Browse files
authored
Merge pull request #3587 from luhuadong/develop
fixed some typos
2 parents 6fb9824 + 88a02d7 commit b2b8887

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/net/at/at_socket/at_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
744744
goto __exit;
745745
}
746746

747-
/* if the socket type is UDP, nead to connect socket first */
747+
/* if the socket type is UDP, need to connect socket first */
748748
if (from && sock->type == AT_SOCKET_UDP && sock->state == AT_SOCKET_OPEN)
749749
{
750750
ip_addr_t remote_addr;

components/net/netdev/src/netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ int netdev_cmd_ping(char* target_name, rt_uint32_t times, rt_size_t size)
10871087
}
10881088
}
10891089

1090-
/* if the response time is more than NETDEV_PING_DELAY, no nead to delay */
1090+
/* if the response time is more than NETDEV_PING_DELAY, no need to delay */
10911091
delay_tick = ((rt_tick_get() - start_tick) > NETDEV_PING_DELAY) || (index == times) ? 0 : NETDEV_PING_DELAY;
10921092
rt_thread_delay(delay_tick);
10931093
}

components/net/sal_socket/src/sal_socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ int sal_shutdown(int socket, int how)
679679
/* get the socket object by socket descriptor */
680680
SAL_SOCKET_OBJ_GET(sock, socket);
681681

682-
/* shutdown operation not nead to check network interface status */
682+
/* shutdown operation not need to check network interface status */
683683
/* check the network interface socket opreation */
684684
SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, shutdown);
685685

@@ -970,7 +970,7 @@ int sal_closesocket(int socket)
970970
/* get the socket object by socket descriptor */
971971
SAL_SOCKET_OBJ_GET(sock, socket);
972972

973-
/* clsoesocket operation not nead to vaild network interface status */
973+
/* clsoesocket operation not need to vaild network interface status */
974974
/* valid the network interface socket opreation */
975975
SAL_NETDEV_SOCKETOPS_VALID(sock->netdev, pf, socket);
976976

0 commit comments

Comments
 (0)