chiark / gitweb /
Install Disobedience manual and make Disobedience use it in preference
[disorder] / lib / hostname.c
index 8e67d847003e14f358ade635de4516441024ab12..b7318e1aed840f6647aee225d6d03d2e13f40681 100644 (file)
@@ -15,6 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+/** @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;