util: make hostname_is_valid() easier to read

Add more comments, and rename some parameters and variables to be more
expressive.
This commit is contained in:
Lennart Poettering
2015-08-24 22:46:45 +02:00
parent 077c8c366b
commit b59abc4d1e
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ bool hostname_is_set(void);
char* gethostname_malloc(void);
bool hostname_is_valid(const char *s, bool relax) _pure_;
bool hostname_is_valid(const char *s, bool allow_trailing_dot) _pure_;
char* hostname_cleanup(char *s);
bool is_localhost(const char *hostname);