summaryrefslogtreecommitdiff
path: root/src/shared/util.h
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/shared/util.h
parent9a00f57a5ba7ed431e6bac8d8b36518708503b4e (diff)
util: generalize is_localhost() and use it everywhere where applicable
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 6ad43cd274..6d3791be7f 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -959,3 +959,5 @@ int fflush_and_check(FILE *f);
char *tempfn_xxxxxx(const char *p);
char *tempfn_random(const char *p);
+
+bool is_localhost(const char *hostname);