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:
Daniel Eischen 2006-02-27 22:08:16 +00:00
parent a29370deb3
commit fc9ae54dca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156089
3 changed files with 6 additions and 22 deletions

View file

@ -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); }

View file

@ -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"},

View file

@ -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);
/*