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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user