* 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

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