* libc/include/sys/types.h: Change type of i to `size_t' in

FD_ZERO macro to avoid compiler warnings.
This commit is contained in:
Corinna Vinschen 2000-11-06 11:59:53 +00:00
parent f8038d021f
commit 3a7607289e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
* 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 <cgf@cygnus.com>
* libc/include/stdlib.h: Avoid declaring cfree under Cygwin.

View File

@ -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; \