diff options
| author | Florian Westphal <fw@strlen.de> | 2007-04-03 22:08:10 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2007-04-03 22:08:10 +0000 |
| commit | 8c14d397ba1d6ef01932448b290fd5ebfd80258d (patch) | |
| tree | d7725621a1e50d1adc959476f721f3ca7d59749c /src | |
| parent | 99eab1e21645483d0611e6b1fbc83c95157af16a (diff) | |
| download | ngircd-8c14d397ba1d6ef01932448b290fd5ebfd80258d.tar.gz ngircd-8c14d397ba1d6ef01932448b290fd5ebfd80258d.zip | |
put parentheses around argument
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn-func.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/conn-func.h b/src/ngircd/conn-func.h index 9da3dfb8..c7ab6794 100644 --- a/src/ngircd/conn-func.h +++ b/src/ngircd/conn-func.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: conn-func.h,v 1.5 2006/05/10 21:24:01 alex Exp $ + * $Id: conn-func.h,v 1.6 2007/04/03 22:08:10 fw Exp $ * * Connection management: Global functions (header) */ @@ -52,9 +52,9 @@ GLOBAL UINT16 Conn_Options PARAMS(( CONN_ID Idx )); GLOBAL void Conn_ResetWCounter PARAMS(( void )); GLOBAL long Conn_WCounter PARAMS(( void )); -#define Conn_OPTION_ADD( x, opt ) ( (x)->options |= opt ) -#define Conn_OPTION_DEL( x, opt ) ( (x)->options &= ~opt ) -#define Conn_OPTION_ISSET( x, opt ) ( (x)->options & opt ) +#define Conn_OPTION_ADD( x, opt ) ( (x)->options |= (opt) ) +#define Conn_OPTION_DEL( x, opt ) ( (x)->options &= ~(opt) ) +#define Conn_OPTION_ISSET( x, opt ) ( ((x)->options & (opt)) != 0) #endif |