From 7ec366a08a7cec7bd23d6b2a4f7954860e3a16fd Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 19 Jul 2021 07:55:27 +0200 Subject: resolv: Move _getlong, _getshort, __putlong, __putshort to res-putget And reformat to GNU style. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- resolv/res_comp.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'resolv/res_comp.c') diff --git a/resolv/res_comp.c b/resolv/res_comp.c index 42e73a1..80faea7 100644 --- a/resolv/res_comp.c +++ b/resolv/res_comp.c @@ -234,18 +234,3 @@ res_dnok (const char *dn) return printable_string (dn) && ns_name_pton (dn, buf, sizeof (buf)) >= 0; } libresolv_hidden_def (res_dnok) - -/* - * This module must export the following externally-visible symbols: - * ___putlong - * ___putshort - * __getlong - * __getshort - * Note that one _ comes from C and the others come from us. - */ -void __putlong(uint32_t src, u_char *dst) { ns_put32(src, dst); } -libresolv_hidden_def (__putlong) -void __putshort(uint16_t src, u_char *dst) { ns_put16(src, dst); } -libresolv_hidden_def (__putshort) -uint32_t _getlong(const u_char *src) { return (ns_get32(src)); } -uint16_t _getshort(const u_char *src) { return (ns_get16(src)); } -- cgit v1.1