aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-28 11:51:02 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-04-28 13:56:38 +0200
commit687c1c0ce27de3a6852c1c02d321f65100d96c5d (patch)
treeaa8a7ea2d7b4e64d6da3550935ce4a7934f56f3e /resolv
parent18b36f5dcfcb75096f804d2cf6b74bc6f27f9ad1 (diff)
downloadglibc-687c1c0ce27de3a6852c1c02d321f65100d96c5d.tar
glibc-687c1c0ce27de3a6852c1c02d321f65100d96c5d.tar.gz
glibc-687c1c0ce27de3a6852c1c02d321f65100d96c5d.tar.bz2
glibc-687c1c0ce27de3a6852c1c02d321f65100d96c5d.zip
resolv: Remove traces of ULTRIX support
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_comp.c2
-rw-r--r--resolv/res_data.c17
2 files changed, 0 insertions, 19 deletions
diff --git a/resolv/res_comp.c b/resolv/res_comp.c
index 3c50774d64..d2be5e4560 100644
--- a/resolv/res_comp.c
+++ b/resolv/res_comp.c
@@ -241,10 +241,8 @@ void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); }
libresolv_hidden_def (__putlong)
void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); }
libresolv_hidden_def (__putshort)
-#ifndef __ultrix__
u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); }
u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); }
-#endif /*__ultrix__*/
#endif /*BIND_4_COMPAT*/
diff --git a/resolv/res_data.c b/resolv/res_data.c
index 3c196dee66..7e848e0945 100644
--- a/resolv/res_data.c
+++ b/resolv/res_data.c
@@ -186,23 +186,6 @@ hostalias(const char *name) {
}
libresolv_hidden_def (hostalias)
-#ifdef ultrix
-int
-local_hostname_length(const char *hostname) {
- int len_host, len_domain;
-
- if (!*_res.defdname)
- res_init();
- len_host = strlen(hostname);
- len_domain = strlen(_res.defdname);
- if (len_host > len_domain &&
- !strcasecmp(hostname + len_host - len_domain, _res.defdname) &&
- hostname[len_host - len_domain - 1] == '.')
- return (len_host - len_domain - 1);
- return (0);
-}
-#endif /*ultrix*/
-
#endif