chiark / gitweb /
Prep v224: Major cleanup of unneeded functions and some source files.
[elogind.git] / src / basic / hostname-util.c
index e336f269fae160cf4c045f1b34b1719ee278b353..8f6a5b4316e4103c48e37cc5d681c63df0510267 100644 (file)
@@ -25,6 +25,8 @@
 #include "util.h"
 #include "hostname-util.h"
 
+/// UNNEEDED by elogind
+#if 0
 bool hostname_is_set(void) {
         struct utsname u;
 
@@ -50,6 +52,7 @@ char* gethostname_malloc(void) {
 
         return strdup(u.nodename);
 }
+#endif // 0
 
 static bool hostname_valid_char(char c) {
         return
@@ -142,6 +145,8 @@ bool is_localhost(const char *hostname) {
                endswith(hostname, ".localdomain.");
 }
 
+/// UNNEEDED by elogind
+#if 0
 int sethostname_idempotent(const char *s) {
         char buf[HOST_NAME_MAX + 1] = {};
 
@@ -191,3 +196,4 @@ int read_hostname_config(const char *path, char **hostname) {
         *hostname = name;
         return 0;
 }
+#endif // 0