summaryrefslogtreecommitdiff
path: root/slstatus/slstatus-1.1/components/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus/slstatus-1.1/components/hostname.c')
-rw-r--r--slstatus/slstatus-1.1/components/hostname.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/slstatus/slstatus-1.1/components/hostname.c b/slstatus/slstatus-1.1/components/hostname.c
deleted file mode 100644
index dab8b63..0000000
--- a/slstatus/slstatus-1.1/components/hostname.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include <stdio.h>
-#include <unistd.h>
-
-#include "../slstatus.h"
-#include "../util.h"
-
-const char *
-hostname(const char *unused)
-{
- if (gethostname(buf, sizeof(buf)) < 0) {
- warn("gethostbyname:");
- return NULL;
- }
-
- return buf;
-}