X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/19007e89957054b4af8667f85c0ec8d95f2001d6..2e9ba080dd30434f3e8f88e63029280889586a32:/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;