From 745c7e0a7f45031b1c68cd3f5af61c12c37537b3 Mon Sep 17 00:00:00 2001 From: liuduanfei <939763442@qq.com> Date: Tue, 10 Aug 2021 08:57:12 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20components/net/lwip=5Fdhcpd/dhcp?= =?UTF-8?q?=5Fserver.c.=20=E6=B6=88=E9=99=A4=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/lwip_dhcpd/dhcp_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/lwip_dhcpd/dhcp_server.c b/components/net/lwip_dhcpd/dhcp_server.c index b37d038b86..46a0b0c500 100644 --- a/components/net/lwip_dhcpd/dhcp_server.c +++ b/components/net/lwip_dhcpd/dhcp_server.c @@ -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); From a24852b6ea004db56d0f3fc7a1de14e43848c864 Mon Sep 17 00:00:00 2001 From: liuduanfei <939763442@qq.com> Date: Tue, 10 Aug 2021 09:06:12 +0000 Subject: [PATCH 2/2] =?UTF-8?q?update=20components/net/lwip=5Fdhcpd/dhcp?= =?UTF-8?q?=5Fserver.c.=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E3=80=82=E6=B7=BB=E5=8A=A0=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/lwip_dhcpd/dhcp_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/lwip_dhcpd/dhcp_server.c b/components/net/lwip_dhcpd/dhcp_server.c index 46a0b0c500..0cc08b5a6e 100644 --- a/components/net/lwip_dhcpd/dhcp_server.c +++ b/components/net/lwip_dhcpd/dhcp_server.c @@ -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, (socklen_t*)&addr_len); + (struct sockaddr *)&client_addr, (socklen_t *)&addr_len); if (bytes_read <= 0) { closesocket(sock);