From 3a7607289e1bda54c2e5cbc9c94b825acfea568f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 6 Nov 2000 11:59:53 +0000 Subject: [PATCH] * libc/include/sys/types.h: Change type of i to `size_t' in FD_ZERO macro to avoid compiler warnings. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/types.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 06c9f4c72..b736cfc81 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 6 12:56:00 2000 Corinna Vinschen + + * libc/include/sys/types.h: Change type of i to `size_t' in + FD_ZERO macro to avoid compiler warnings. + Sun Oct 29 20:06:41 2000 Christopher Faylor * libc/include/stdlib.h: Avoid declaring cfree under Cygwin. diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index d87a119cd..a9abeda7f 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -165,7 +165,7 @@ typedef struct _types_fd_set { # define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS))) # define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS))) # define FD_ZERO(p) (__extension__ (void)({ \ - int i; \ + size_t i; \ char *__tmp = (char *)p; \ for (i = 0; i < sizeof (*(p)); ++i) \ *__tmp++ = 0; \