mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 14:36:05 +03:00
Change to recv(), stop warning on close
This commit is contained in:
parent
43787fae12
commit
f2b27f868e
4
dns.c
4
dns.c
@ -133,10 +133,8 @@ int
|
||||
dns_read(int fd, char *buf, int len)
|
||||
{
|
||||
int r;
|
||||
int fromlen;
|
||||
struct sockaddr_in from;
|
||||
|
||||
r = recvfrom(fd, buf, len, 0, (struct sockaddr*)&from, &fromlen);
|
||||
r = recv(fd, buf, len, 0);
|
||||
if (r < 0) {
|
||||
perror("recvfrom");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user