chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/configuration.c, lib/home.c: Introduce environment variables.
[disorder]
/
lib
/
hostname.c
diff --git
a/lib/hostname.c
b/lib/hostname.c
index 292b3add4e2b6d094679a891a6e16d0b45996d5c..b7318e1aed840f6647aee225d6d03d2e13f40681 100644
(file)
--- a/
lib/hostname.c
+++ b/
lib/hostname.c
@@
-40,9
+40,9
@@
const char *local_hostname(void) {
struct hostent *he;
if(uname(&u) < 0)
struct hostent *he;
if(uname(&u) < 0)
- fatal(errno, "error calling uname");
+
disorder_
fatal(errno, "error calling uname");
if(!(he = gethostbyname(u.nodename)))
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;
hostname = xstrdup(he->h_name);
}
return hostname;