commit - 99eab1e21645483d0611e6b1fbc83c95157af16a
commit + 8c14d397ba1d6ef01932448b290fd5ebfd80258d
blob - 9da3dfb80418591d247c39b3adff6d031177d0ae
blob + c7ab6794718249f1244d7035edfa8cc3dbee724c
--- src/ngircd/conn-func.h
+++ src/ngircd/conn-func.h
* (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)
*/
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