diff options
author | mike <mike@FreeBSD.org> | 2002-11-28 15:34:32 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-11-28 15:34:32 +0000 |
commit | a6ddd1313b01a2d725c73a504e092e360cc9354c (patch) | |
tree | 462f26c9b6c59361ef399255c9f77d21f321c21f | |
parent | a583e08ab89c73b0c33be1712d0955adc09dc5ec (diff) | |
download | FreeBSD-src-a6ddd1313b01a2d725c73a504e092e360cc9354c.zip FreeBSD-src-a6ddd1313b01a2d725c73a504e092e360cc9354c.tar.gz |
Fix the standards case by referring to __fds_bits instead of fds_bits
in FD_*() macros.
Submitted by: Marc Recht <marc@informatik.uni-bremen.de>
Approved by: re
-rw-r--r-- | sys/sys/select.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h index b9ca531..3843238 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -86,12 +86,12 @@ typedef struct fd_set { #endif #define __fdset_mask(n) ((__fd_mask)1 << ((n) % _NFDBITS)) -#define FD_CLR(n, p) ((p)->fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) +#define FD_CLR(n, p) ((p)->__fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) #if __BSD_VISIBLE #define FD_COPY(f, t) (void)(*(t) = *(f)) #endif -#define FD_ISSET(n, p) ((p)->fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) -#define FD_SET(n, p) ((p)->fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) +#define FD_ISSET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) +#define FD_SET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) #define FD_ZERO(p) do { \ fd_set *_p; \ __size_t _n; \ |