X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..eff6238fcaa690773dc292816fa47b8767efa00c:/lib/hostname.c diff --git a/lib/hostname.c b/lib/hostname.c index 292b3ad..b7318e1 100644 --- a/lib/hostname.c +++ b/lib/hostname.c @@ -40,9 +40,9 @@ const char *local_hostname(void) { struct hostent *he; if(uname(&u) < 0) - fatal(errno, "error calling uname"); + disorder_fatal(errno, "error calling uname"); if(!(he = gethostbyname(u.nodename))) - fatal(0, "cannot resolve '%s'", u.nodename); + disorder_fatal(0, "cannot resolve '%s'", u.nodename); hostname = xstrdup(he->h_name); } return hostname;