about summary refs log tree commit diff
path: root/resolv/resolv-internal.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-19 07:55:27 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-19 07:56:21 +0200
commitbe5773e1668ab62e980b58c68c3ffd0fd65e31af (patch)
tree5f96d76963ac508f60bb24742c20424fdbdfe0c2 /resolv/resolv-internal.h
parent7131727c6ba451e1c5bf075194c7adc9292906c4 (diff)
downloadglibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.tar.gz
glibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.tar.xz
glibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.zip
resolv: Move __res_context_hostalias into its own file and into libc
And reformat it to GNU style.  Remove the unecessary setbuf call.
Use __fgets_unlocked for PLT avoidance; no locking is required here.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/resolv-internal.h')
-rw-r--r--resolv/resolv-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h
index c18b1d0472..7d37817232 100644
--- a/resolv/resolv-internal.h
+++ b/resolv/resolv-internal.h
@@ -79,7 +79,7 @@ int __res_context_send (struct resolv_context *, const unsigned char *, int,
 /* Internal function similar to res_hostalias.  */
 const char *__res_context_hostalias (struct resolv_context *,
                                      const char *, char *, size_t);
-libresolv_hidden_proto (__res_context_hostalias);
+libc_hidden_proto (__res_context_hostalias);
 
 /* Add an OPT record to a DNS query.  */
 int __res_nopt (struct resolv_context *, int n0,