diff options
author | deischen <deischen@FreeBSD.org> | 2006-02-27 22:08:16 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2006-02-27 22:08:16 +0000 |
commit | 2a2559a103e853552bf162079b75f0af0f21e574 (patch) | |
tree | fdfb388ac0ce343027a99be467a1f57ff43e6ff7 | |
parent | cf459941f1e991341d0048c26be0e51d3d67a066 (diff) | |
download | FreeBSD-src-2a2559a103e853552bf162079b75f0af0f21e574.zip FreeBSD-src-2a2559a103e853552bf162079b75f0af0f21e574.tar.gz |
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.
-rw-r--r-- | lib/libc/net/res_comp.c | 8 | ||||
-rw-r--r-- | lib/libc/net/res_debug.c | 4 | ||||
-rw-r--r-- | lib/libc/net/res_send.c | 16 |
3 files changed, 6 insertions, 22 deletions
diff --git a/lib/libc/net/res_comp.c b/lib/libc/net/res_comp.c index 2e22483..0739188 100644 --- a/lib/libc/net/res_comp.c +++ b/lib/libc/net/res_comp.c @@ -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); } diff --git a/lib/libc/net/res_debug.c b/lib/libc/net/res_debug.c index 3481419..9a29448 100644 --- a/lib/libc/net/res_debug.c +++ b/lib/libc/net/res_debug.c @@ -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"}, diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 1775ead..acaf025 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -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); /* |