diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-11 17:26:30 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-26 12:59:13 +0200 |
commit | c5729796b4ec5e5f4800bfe6bd9ceb5c2da81fbe (patch) | |
tree | d2610dc100e2b675389ccdc7ef3afc3ec162fce0 /src/basic/hostname-util.c | |
parent | 756c392103bc01d409c1760146ac2df7dd8f8ede (diff) |
Prep v228: Condense elogind source masks (1/5)
Although having a two line mask like
/// UNNEEDED by elogind
#if 0
it is much more easier to read (and patch!) if those two lines were
condense into a one-line mask start like
#if 0 /// UNNEEDED by elogind
Diffstat (limited to 'src/basic/hostname-util.c')
-rw-r--r-- | src/basic/hostname-util.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c index 6ad479d55..206959dad 100644 --- a/src/basic/hostname-util.c +++ b/src/basic/hostname-util.c @@ -28,8 +28,7 @@ #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; @@ -116,8 +115,7 @@ bool hostname_is_valid(const char *s, bool allow_trailing_dot) { return true; } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind 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."); } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind bool is_gateway_hostname(const char *hostname) { assert(hostname); |