~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugins/tracklength-gstreamer.c: Rewrite to use `GstDiscoverer'.
[disorder]
/
lib
/
hostname.c
diff --git
a/lib/hostname.c
b/lib/hostname.c
index
292b3ad
..
b7318e1
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;