chiark / gitweb /
Fix assertion failure when resuming from sleep/suspend
[elogind.git] / src / basic / hostname-util.c
index f221c6ff1dc31fb3cf5c922413f42057fc6d6574..c0048409b6f2f93767580f78c76179e7011e2d69 100644 (file)
@@ -113,6 +113,8 @@ bool hostname_is_valid(const char *s, bool allow_trailing_dot) {
         return true;
 }
 
+/// UNNEEDED by elogind
+#if 0
 char* hostname_cleanup(char *s) {
         char *p, *d;
         bool dot;
@@ -142,6 +144,7 @@ char* hostname_cleanup(char *s) {
 
         return s;
 }
+#endif // 0
 
 bool is_localhost(const char *hostname) {
         assert(hostname);
@@ -159,6 +162,8 @@ bool is_localhost(const char *hostname) {
                endswith_no_case(hostname, ".localdomain.");
 }
 
+/// UNNEEDED by elogind
+#if 0
 bool is_gateway_hostname(const char *hostname) {
         assert(hostname);
 
@@ -170,8 +175,6 @@ bool is_gateway_hostname(const char *hostname) {
                 strcaseeq(hostname, "gateway.");
 }
 
-/// UNNEEDED by elogind
-#if 0
 int sethostname_idempotent(const char *s) {
         char buf[HOST_NAME_MAX + 1] = {};