From cbbf0f9645297f09774d894c7fde226ce841850b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 25 Nov 2000 10:25:51 +0000 Subject: * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to avoid compiler warnings. --- newlib/libc/include/sys/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc/include') diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index a9abeda..1f147c6 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -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; \ })) -- cgit v1.1