From: Martin Mares Date: Fri, 31 Dec 2010 15:10:40 +0000 (+0100) Subject: gethostbyname() does not set errno X-Git-Tag: v1.13~20 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=f15fc7443aaaffb32b4805b164f6035c1ab3d1f5;p=nwho.git gethostbyname() does not set errno --- diff --git a/nwhod.c b/nwhod.c index 5f3b0ac..05e73a9 100644 --- a/nwhod.c +++ b/nwhod.c @@ -58,7 +58,7 @@ net_init(char *name) if (name) { if (! (h = gethostbyname(name))) - die("%s: %m", name); + die("Failed to resolve %s", name); } else h = NULL;