chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v228: Condense elogind source masks (1/5)
[elogind.git]
/
src
/
basic
/
hostname-util.c
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index 6ad479d55fa53fdfbf9c559929abc4f3be8e6b23..206959dad75ead0766b3fdc4abc6253be1cc3e73 100644
(file)
--- a/
src/basic/hostname-util.c
+++ b/
src/basic/hostname-util.c
@@
-28,8
+28,7
@@
#include "string-util.h"
#include "util.h"
#include "string-util.h"
#include "util.h"
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
bool hostname_is_set(void) {
struct utsname u;
bool hostname_is_set(void) {
struct utsname u;
@@
-116,8
+115,7
@@
bool hostname_is_valid(const char *s, bool allow_trailing_dot) {
return true;
}
return true;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
char* hostname_cleanup(char *s) {
char *p, *d;
bool dot;
char* hostname_cleanup(char *s) {
char *p, *d;
bool dot;
@@
-165,8
+163,7
@@
bool is_localhost(const char *hostname) {
endswith_no_case(hostname, ".localdomain.");
}
endswith_no_case(hostname, ".localdomain.");
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
bool is_gateway_hostname(const char *hostname) {
assert(hostname);
bool is_gateway_hostname(const char *hostname) {
assert(hostname);