* 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:
parent
f8038d021f
commit
3a7607289e
|
@ -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>
|
Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
|
* libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
|
||||||
|
|
|
@ -165,7 +165,7 @@ typedef struct _types_fd_set {
|
||||||
# define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))
|
# 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_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))
|
||||||
# define FD_ZERO(p) (__extension__ (void)({ \
|
# define FD_ZERO(p) (__extension__ (void)({ \
|
||||||
int i; \
|
size_t i; \
|
||||||
char *__tmp = (char *)p; \
|
char *__tmp = (char *)p; \
|
||||||
for (i = 0; i < sizeof (*(p)); ++i) \
|
for (i = 0; i < sizeof (*(p)); ++i) \
|
||||||
*__tmp++ = 0; \
|
*__tmp++ = 0; \
|
||||||
|
|
Loading…
Reference in New Issue