diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-02 13:41:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-02 13:41:31 +0200 |
commit | fecc80c1ba2eed9dadb9a10c15508c356bcc5fc1 (patch) | |
tree | 8db82ae690416827c910683432c9746f365acf2e /src/hostname | |
parent | 9a00f57a5ba7ed431e6bac8d8b36518708503b4e (diff) |
util: generalize is_localhost() and use it everywhere where applicable
Diffstat (limited to 'src/hostname')
-rw-r--r-- | src/hostname/hostnamed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 241d296916..c2b6d3d6f3 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -258,7 +258,7 @@ static char* context_fallback_icon_name(Context *c) { } static bool hostname_is_useful(const char *hn) { - return !isempty(hn) && !streq(hn, "localhost"); + return !isempty(hn) && !is_localhost(hn); } static int context_update_kernel_hostname(Context *c) { |