diff options
author | 2015-05-26 19:28:57 +0000 | |
---|---|---|
committer | 2015-05-26 19:28:57 +0000 | |
commit | d2d7f9c9347db0370dc77f3195becbfc263c6f44 (patch) | |
tree | 9de8d739d3ed0ea92d5e46e114bec4c41b5b0804 /lib/libc/asr/gethostnamadr_async.c | |
parent | Fix missing vlan.h include in if_vio.c (diff) | |
download | wireguard-openbsd-d2d7f9c9347db0370dc77f3195becbfc263c6f44.tar.xz wireguard-openbsd-d2d7f9c9347db0370dc77f3195becbfc263c6f44.zip |
simply use _PATH_HOSTS where appropriate
Diffstat (limited to 'lib/libc/asr/gethostnamadr_async.c')
-rw-r--r-- | lib/libc/asr/gethostnamadr_async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c index 7f39e777343..656c8e7faf1 100644 --- a/lib/libc/asr/gethostnamadr_async.c +++ b/lib/libc/asr/gethostnamadr_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gethostnamadr_async.c,v 1.35 2015/03/02 14:22:48 brynet Exp $ */ +/* $OpenBSD: gethostnamadr_async.c,v 1.36 2015/05/26 19:28:57 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -249,7 +249,7 @@ gethostnamadr_async_run(struct asr_query *as, struct asr_result *ar) /* Try to find a match in the host file */ - if ((f = fopen(as->as_ctx->ac_hostfile, "re")) == NULL) + if ((f = fopen(_PATH_HOSTS, "re")) == NULL) break; if (as->as_type == ASR_GETHOSTBYNAME) { |