follow error output standard

This commit is contained in:
Erik Ekman 2006-06-05 15:33:29 +00:00
parent cbdb3a9c7d
commit f8c55cb4e7
1 changed files with 2 additions and 2 deletions

4
dns.c
View File

@ -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;
}