mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
Correct a comment.
Staticize two tables thare are not visible in <resolv.h> and which are also local in Solaris' libresolv. Remove two functions that are not referenced in libc nor anywhere else I can find, not visible in <resolv.h> and which are also local in Solaris libresolv.
This commit is contained in:
parent
a29370deb3
commit
fc9ae54dca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156089
|
@ -246,10 +246,10 @@ res_dnok(dn)
|
|||
#ifdef BIND_4_COMPAT
|
||||
/*
|
||||
* This module must export the following externally-visible symbols:
|
||||
* ___putlong
|
||||
* ___putshort
|
||||
* __getlong
|
||||
* __getshort
|
||||
* __putlong
|
||||
* __putshort
|
||||
* _getlong
|
||||
* _getshort
|
||||
* Note that one _ comes from C and the others come from us.
|
||||
*/
|
||||
void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); }
|
||||
|
|
|
@ -352,7 +352,7 @@ const struct res_sym __p_class_syms[] = {
|
|||
/*
|
||||
* Names of message sections.
|
||||
*/
|
||||
const struct res_sym __p_default_section_syms[] = {
|
||||
static const struct res_sym __p_default_section_syms[] = {
|
||||
{ns_s_qd, "QUERY"},
|
||||
{ns_s_an, "ANSWER"},
|
||||
{ns_s_ns, "AUTHORITY"},
|
||||
|
@ -360,7 +360,7 @@ const struct res_sym __p_default_section_syms[] = {
|
|||
{0, (char *)0}
|
||||
};
|
||||
|
||||
const struct res_sym __p_update_section_syms[] = {
|
||||
static const struct res_sym __p_update_section_syms[] = {
|
||||
{S_ZONE, "ZONE"},
|
||||
{S_PREREQ, "PREREQUISITE"},
|
||||
{S_UPDATE, "UPDATE"},
|
||||
|
|
|
@ -166,22 +166,6 @@ static void Perror(FILE *, char *, int);
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
res_send_setqhook(hook)
|
||||
res_send_qhook hook;
|
||||
{
|
||||
|
||||
Qhook = hook;
|
||||
}
|
||||
|
||||
void
|
||||
res_send_setrhook(hook)
|
||||
res_send_rhook hook;
|
||||
{
|
||||
|
||||
Rhook = hook;
|
||||
}
|
||||
|
||||
static struct sockaddr * get_nsaddr(size_t);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue