4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 15:53:32 +08:00

Merge remote-tracking branch 'rtt_gitee/gitee_master'

This commit is contained in:
rtthread-bot 2021-08-10 16:25:59 +00:00
commit d545b2af04

View File

@ -306,7 +306,7 @@ static void dhcpd_thread_entry(void *parameter)
while (1)
{
bytes_read = recvfrom(sock, recv_data, BUFSZ - 1, 0,
(struct sockaddr *)&client_addr, &addr_len);
(struct sockaddr *)&client_addr, (socklen_t *)&addr_len);
if (bytes_read <= 0)
{
closesocket(sock);