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);