diff options
Diffstat (limited to 'sysdeps/i386/bits/select.h')
-rw-r--r-- | sysdeps/i386/bits/select.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/i386/bits/select.h b/sysdeps/i386/bits/select.h index edcb562945..34d2b0b27a 100644 --- a/sysdeps/i386/bits/select.h +++ b/sysdeps/i386/bits/select.h @@ -58,8 +58,9 @@ # define __FD_ZERO(set) \ do { \ unsigned int __i; \ + __fd_mask *__arr = (set); \ for (__i = 0; __i < sizeof (__fd_set) / sizeof (__fd_mask); ++__i) \ - ((__fd_mask *) set)[__i] = 0; \ + __arr->fds_bits[__i] = 0; \ } while (0) # define __FD_SET(d, set) ((set)->fds_bits[__FDELT (d)] |= __FDMASK (d)) # define __FD_CLR(d, set) ((set)->fds_bits[__FDELT (d)] &= ~__FDMASK (d)) |