Xinqi Bao's Git

Add Michael Buch to LICENSE
[slstatus.git] / components / hostname.c
index d41465f..dc3bbf1 100644 (file)
@@ -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;
        }