summaryrefslogtreecommitdiffstats
path: root/src/power/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/power/globals.c')
-rw-r--r--src/power/globals.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/power/globals.c b/src/power/globals.c
deleted file mode 100644
index 2ba5075..0000000
--- a/src/power/globals.c
+++ /dev/null
@@ -1,24 +0,0 @@
-
-#include "globals.h"
-
-#define _XOPEN_SOURCE 500
-
-#include <stdlib.h>
-#include <unistd.h>
-#include "trace.h"
-
-static char *_hostname = NULL;
-
-const char *get_system_name()
-{
- if (_hostname == NULL) {
- _hostname = malloc(256 * sizeof(char));
- if (gethostname(_hostname, 255) == -1) {
- TRACE(4, "get_hostname(): gethostname returned -1");
- free(_hostname);
- _hostname = NULL;
- }
- }
- // TODO: try to get full qualified hostname
- return _hostname;
-}