X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fhostname-util.c;h=23366e57bdf9ef7dee68e04cecc56dea9bc48043;hb=893c787a64c37b37e94cdce8e3edcfbc4cbb6984;hp=6ad479d55fa53fdfbf9c559929abc4f3be8e6b23;hpb=eaca07ccfdf5d7dabc50afc7e539c2413dd69d3e;p=elogind.git diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c index 6ad479d55..23366e57b 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; @@ -75,7 +74,7 @@ static bool hostname_valid_char(char c) { * allow_trailing_dot is true and at least two components are present * in the name. Note that due to the restricted charset and length * this call is substantially more conservative than - * dns_domain_is_valid(). + * dns_name_is_valid(). */ bool hostname_is_valid(const char *s, bool allow_trailing_dot) { unsigned n_dots = 0; @@ -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);