aboutsummaryrefslogtreecommitdiff
path: root/slstatus/components/hostname.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-16 23:33:42 +0100
committerMarvin Borner2020-03-16 23:33:42 +0100
commit0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch)
tree719da1c7fe5dabb872fe9ff1582c39b55ccd488e /slstatus/components/hostname.c
parente5d38956336ab1be954bdbd12808c5f98f8bd925 (diff)
Well I'm using Arch again
Diffstat (limited to 'slstatus/components/hostname.c')
-rw-r--r--slstatus/components/hostname.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/slstatus/components/hostname.c b/slstatus/components/hostname.c
deleted file mode 100644
index 23da677..0000000
--- a/slstatus/components/hostname.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include <stdio.h>
-#include <unistd.h>
-
-#include "../util.h"
-
-const char *
-hostname(void)
-{
- if (gethostname(buf, sizeof(buf)) < 0) {
- warn("gethostbyname:");
- return NULL;
- }
-
- return buf;
-}