* libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to

avoid compiler warnings.
This commit is contained in:
Corinna Vinschen 2000-11-25 10:25:51 +00:00
parent 0bec01198b
commit cbbf0f9645
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
* libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
avoid compiler warnings.
2000-11-22 Michael Meissner <meissner@redhat.com>
* libc/posix/execl.c (execl): Don't reference environ directly,

View file

@ -165,9 +165,9 @@ 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)({ \
size_t i; \
size_t __i; \
char *__tmp = (char *)p; \
for (i = 0; i < sizeof (*(p)); ++i) \
for (__i = 0; __i < sizeof (*(p)); ++__i) \
*__tmp++ = 0; \
}))