summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-02 13:41:31 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-02 13:41:31 +0200
commitfecc80c1ba2eed9dadb9a10c15508c356bcc5fc1 (patch)
tree8db82ae690416827c910683432c9746f365acf2e /src/hostname
parent9a00f57a5ba7ed431e6bac8d8b36518708503b4e (diff)
util: generalize is_localhost() and use it everywhere where applicable
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamed.c2
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) {