summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ngatm
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-10-13 17:09:16 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-10-13 17:09:16 +0000
commit0d77104f9e3deb8c548b49dec8794a191b43adb7 (patch)
tree666acdd7278a6a36c33bba355c56ba2f331b0185 /sys/contrib/ngatm
parent2de6528ef10c59e688bb1291701ed02e968b36b4 (diff)
downloadFreeBSD-src-0d77104f9e3deb8c548b49dec8794a191b43adb7.zip
FreeBSD-src-0d77104f9e3deb8c548b49dec8794a191b43adb7.tar.gz
Fix several cases were a conditional operator was used instead of a
bitwise operator. Found with: clang
Diffstat (limited to 'sys/contrib/ngatm')
-rw-r--r--sys/contrib/ngatm/netnatm/api/cc_conn.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/contrib/ngatm/netnatm/api/cc_conn.c b/sys/contrib/ngatm/netnatm/api/cc_conn.c
index 2ba972a..3350e2c 100644
--- a/sys/contrib/ngatm/netnatm/api/cc_conn.c
+++ b/sys/contrib/ngatm/netnatm/api/cc_conn.c
@@ -977,25 +977,25 @@ cc_conn_sig_handle(struct ccconn *conn, enum conn_sig sig,
/*
* attributes
*/
- if (conn->dirty_attr && CCDIRTY_AAL)
+ if (conn->dirty_attr & CCDIRTY_AAL)
resp->connect.aal = conn->aal;
- if (conn->dirty_attr && CCDIRTY_BLLI)
+ if (conn->dirty_attr & CCDIRTY_BLLI)
resp->connect.blli =
conn->blli[conn->blli_selector - 1];
- if (conn->dirty_attr && CCDIRTY_CONNID)
+ if (conn->dirty_attr & CCDIRTY_CONNID)
resp->connect.connid = conn->connid;
/* XXX NOTIFY */
- if (conn->dirty_attr && CCDIRTY_EETD)
+ if (conn->dirty_attr & CCDIRTY_EETD)
resp->connect.eetd = conn->eetd;
/* XXX GIT */
/* XXX UU */
- if (conn->dirty_attr && CCDIRTY_TRAFFIC)
+ if (conn->dirty_attr & CCDIRTY_TRAFFIC)
resp->connect.traffic = conn->traffic;
- if (conn->dirty_attr && CCDIRTY_EXQOS)
+ if (conn->dirty_attr & CCDIRTY_EXQOS)
resp->connect.exqos = conn->exqos;
- if (conn->dirty_attr && CCDIRTY_ABRSETUP)
+ if (conn->dirty_attr & CCDIRTY_ABRSETUP)
resp->connect.abrsetup = conn->abrsetup;
- if (conn->dirty_attr && CCDIRTY_ABRADD)
+ if (conn->dirty_attr & CCDIRTY_ABRADD)
resp->connect.abradd = conn->abradd;
/*
OpenPOWER on IntegriCloud