X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..2e9ba080dd30434f3e8f88e63029280889586a32:/lib/hostname.c?ds=inline 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;