chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up more unneeded functions and types in:
[elogind.git]
/
src
/
basic
/
hostname-util.c
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index a55b4149d4eff9e9350ef13f9d7846fd6bed6de6..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);