diff options
Diffstat (limited to 'components/hostname.c')
-rw-r--r-- | components/hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/hostname.c b/components/hostname.c index d41465f..dc3bbf1 100644 --- 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; } |