X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..af21fb6be8e226ce86b47ed923ee124e739ca48c:/lib/hostname.c diff --git a/lib/hostname.c b/lib/hostname.c index 8e67d84..b7318e1 100644 --- a/lib/hostname.c +++ b/lib/hostname.c @@ -15,6 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +/** @file lib/hostname.c + * @brief Get the local hostname + */ #include "common.h" @@ -37,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;