#include "util.h"
#include "hostname-util.h"
+/// UNNEEDED by elogind
+#if 0
bool hostname_is_set(void) {
struct utsname u;
return strdup(u.nodename);
}
+#endif // 0
static bool hostname_valid_char(char c) {
return
endswith(hostname, ".localdomain.");
}
+/// UNNEEDED by elogind
+#if 0
int sethostname_idempotent(const char *s) {
char buf[HOST_NAME_MAX + 1] = {};
*hostname = name;
return 0;
}
+#endif // 0