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 | |
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.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/types.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c824d12..8a22f4d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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, 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; \ })) |