aboutsummaryrefslogtreecommitdiff
path: root/slstatuso/components/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatuso/components/hostname.c')
-rwxr-xr-xslstatuso/components/hostname.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/slstatuso/components/hostname.c b/slstatuso/components/hostname.c
deleted file mode 100755
index dab8b63..0000000
--- a/slstatuso/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;
-}