diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-01-09 16:49:17 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-01-09 16:49:17 -0500 |
commit | f257bbd77dfcfdf9fa305e220b295e4ad57f405d (patch) | |
tree | 37d451738cd8feb3fdda5945149822015f282bd5 /bits | |
parent | fa9c15cb83a256da27f8ab99207b752e598c4937 (diff) | |
download | glibc-f257bbd77dfcfdf9fa305e220b295e4ad57f405d.tar.gz glibc-f257bbd77dfcfdf9fa305e220b295e4ad57f405d.tar.xz glibc-f257bbd77dfcfdf9fa305e220b295e4ad57f405d.zip |
Clean up some bits/select.h headers.
Diffstat (limited to 'bits')
-rw-r--r-- | bits/select.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bits/select.h b/bits/select.h index 47e7dedc30..8a4e537b94 100644 --- a/bits/select.h +++ b/bits/select.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2001, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,6 +30,8 @@ for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \ __FDS_BITS (__arr)[__i] = 0; \ } while (0) -#define __FD_SET(d, s) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d)) -#define __FD_CLR(d, s) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d)) -#define __FD_ISSET(d, s) ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0) +#define __FD_SET(d, s) \ + ((void) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d))) +#define __FD_CLR(d, s) \ + ((void) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d))) +#define __FD_ISSET(d, s) ((__FDS_BITS (s)[__FDELT (d)] & __FDMASK (d)) != 0) |