chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm/aarch64: detect-virt: check dmi
[elogind.git]
/
src
/
basic
/
hostname-util.c
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index f221c6ff1dc31fb3cf5c922413f42057fc6d6574..c0048409b6f2f93767580f78c76179e7011e2d69 100644
(file)
--- a/
src/basic/hostname-util.c
+++ b/
src/basic/hostname-util.c
@@
-113,6
+113,8
@@
bool hostname_is_valid(const char *s, bool allow_trailing_dot) {
return true;
}
return true;
}
+/// UNNEEDED by elogind
+#if 0
char* hostname_cleanup(char *s) {
char *p, *d;
bool dot;
char* hostname_cleanup(char *s) {
char *p, *d;
bool dot;
@@
-142,6
+144,7
@@
char* hostname_cleanup(char *s) {
return s;
}
return s;
}
+#endif // 0
bool is_localhost(const char *hostname) {
assert(hostname);
bool is_localhost(const char *hostname) {
assert(hostname);
@@
-159,6
+162,8
@@
bool is_localhost(const char *hostname) {
endswith_no_case(hostname, ".localdomain.");
}
endswith_no_case(hostname, ".localdomain.");
}
+/// UNNEEDED by elogind
+#if 0
bool is_gateway_hostname(const char *hostname) {
assert(hostname);
bool is_gateway_hostname(const char *hostname) {
assert(hostname);
@@
-170,8
+175,6
@@
bool is_gateway_hostname(const char *hostname) {
strcaseeq(hostname, "gateway.");
}
strcaseeq(hostname, "gateway.");
}
-/// UNNEEDED by elogind
-#if 0
int sethostname_idempotent(const char *s) {
char buf[HOST_NAME_MAX + 1] = {};
int sethostname_idempotent(const char *s) {
char buf[HOST_NAME_MAX + 1] = {};