diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:55:27 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:56:21 +0200 |
commit | be5773e1668ab62e980b58c68c3ffd0fd65e31af (patch) | |
tree | 5f96d76963ac508f60bb24742c20424fdbdfe0c2 /resolv/resolv-internal.h | |
parent | 7131727c6ba451e1c5bf075194c7adc9292906c4 (diff) | |
download | glibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.zip glibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.tar.gz glibc-be5773e1668ab62e980b58c68c3ffd0fd65e31af.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h index c18b1d0..7d37817 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, |