Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Add Michael Buch to LICENSE
[slstatus.git]
/
components
/
hostname.c
diff --git
a/components/hostname.c
b/components/hostname.c
index
d41465f
..
dc3bbf1
100644
(file)
--- a/
components/hostname.c
+++ b/
components/hostname.c
@@
-10,7
+10,7
@@
const char *
hostname(void)
{
if (gethostname(buf, sizeof(buf)) < 0) {
-
fprintf(stderr, "gethostbyname: %s\n", strerror(errno)
);
+
warn("gethostbyname:"
);
return NULL;
}