From 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 16 Mar 2020 23:33:42 +0100 Subject: Well I'm using Arch again --- slstatus/components/hostname.c | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 slstatus/components/hostname.c (limited to 'slstatus/components/hostname.c') 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 -#include - -#include "../util.h" - -const char * -hostname(void) -{ - if (gethostname(buf, sizeof(buf)) < 0) { - warn("gethostbyname:"); - return NULL; - } - - return buf; -} -- cgit v1.2.3