mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-04 15:33:19 +00:00
follow error output standard
This commit is contained in:
parent
cbdb3a9c7d
commit
f8c55cb4e7
4
dns.c
4
dns.c
|
@ -49,7 +49,7 @@ open_dns()
|
|||
|
||||
fd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if(fd < 0) {
|
||||
warn("Could not get UDP socket");
|
||||
warn("socket");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ open_dns()
|
|||
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
|
||||
|
||||
if(bind(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
|
||||
warn("Could not bind UDP socket locally");
|
||||
warn("bind");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue