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. --- nscd/nscd_gethst_r.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nscd') diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index d371922430..f51cceb928 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -263,7 +263,7 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, } resultbuf->h_addr_list[cnt] = NULL; - if (__readv (sock, vec, n) != total_len) + if ((size_t) __readv (sock, vec, n) != total_len) { __close (sock); return -1; @@ -284,7 +284,8 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, goto no_room; /* And finally read the aliases. */ - if (__read (sock, resultbuf->h_aliases[0], total_len) != total_len) + if ((size_t) __read (sock, resultbuf->h_aliases[0], total_len) + != total_len) { __close (sock); return -1; -- cgit 1.4.1