]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: make manager_etc_hosts_read() static
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Jul 2018 11:36:13 +0000 (20:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Jul 2018 11:36:13 +0000 (20:36 +0900)
src/resolve/resolved-etc-hosts.c
src/resolve/resolved-etc-hosts.h

index 10e2b7f737ef6fe61d349bb89ae3aa1ed13a7069..2c52c91b72f49cd138e15e0263e77347013bf607 100644 (file)
@@ -236,7 +236,7 @@ static int parse_line(Manager *m, unsigned nr, const char *line) {
         return r;
 }
 
-int manager_etc_hosts_read(Manager *m) {
+static int manager_etc_hosts_read(Manager *m) {
         _cleanup_fclose_ FILE *f = NULL;
         char line[LINE_MAX];
         struct stat st;
index b8e04c393b0a5ad60a851042aee8ae9678664d24..0498ee3821225831fa5e9a75c07b756730e8de86 100644 (file)
@@ -6,5 +6,4 @@
 #include "resolved-dns-answer.h"
 
 void manager_etc_hosts_flush(Manager *m);
-int manager_etc_hosts_read(Manager *m);
 int manager_etc_hosts_lookup(Manager *m, DnsQuestion* q, DnsAnswer **answer);