From f8c55cb4e725bed6e64ec2dcc79adf7ce5d62f1c Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Mon, 5 Jun 2006 15:33:29 +0000 Subject: [PATCH] follow error output standard --- dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns.c b/dns.c index f737b62..0388912 100644 --- a/dns.c +++ b/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; }