!292 修改 recvfrom 参数编译警告
Merge pull request !292 from liuduanfei/gitee_master
This commit is contained in:
commit
08227849d2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue