diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-11-25 10:25:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-11-25 10:25:51 +0000 |
commit | cbbf0f9645297f09774d894c7fde226ce841850b (patch) | |
tree | b4d36120f219edcfb3d93d2d553298da13a80403 /newlib/libc/include | |
parent | 0bec01198bd55dc9b2ef574372852693c2e44da7 (diff) | |
download | newlib-cbbf0f9645297f09774d894c7fde226ce841850b.zip newlib-cbbf0f9645297f09774d894c7fde226ce841850b.tar.gz newlib-cbbf0f9645297f09774d894c7fde226ce841850b.tar.bz2 |
* libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
avoid compiler warnings.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/sys/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ })) |