From 160bb4094514b41e70a4701235fb622c0061442b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 25 Sep 2002 01:58:37 +0000 Subject: * csu/Versions: Use %include to get USE_TLS defined. (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno. (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead. * resolv/Versions: Use %include to get USE_TLS defined. (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno, and _res. (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here. * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD): New macros for x86-64. * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed. It was indentical to the linux/bits/time.h file. * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning. * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE. --- resolv/gethnamaddr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resolv/gethnamaddr.c') diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index 8236b144a8..1ab102b420 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -633,7 +633,8 @@ gethostbyaddr(addr, len, af) const u_char *uaddr = (const u_char *)addr; static const u_char mapped[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0xff,0xff }; static const u_char tunnelled[] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0,0 }; - int n, size; + int n; + socklen_t size; querybuf buf; register struct hostent *hp; char qbuf[MAXDNAME+1], *qp = NULL; -- cgit v1.2.3