ipsec: use boolean or vs. bitwise or to avoid compiler error 70/8870/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 18 Oct 2017 10:21:34 +0000 (12:21 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 18 Oct 2017 12:55:00 +0000 (12:55 +0000)
commitec46b7c60ee22fdb836a4b2bcf97153c632173d2
treeb070ca94920394fc33c0128dfcadcee37a1eed4b
parentcf5e848d69a4f14464c1e2d56896bc9f7e586951
ipsec: use boolean or vs. bitwise or to avoid compiler error

Ubuntu 17.04, gcc version 6.3.0 20170406 (Ubuntu 6.3.0-12ubuntu2),
"make build" fails with the few of the errors below:

error: suggest parentheses around comparison in operand of ‘|’
[-Werror=parentheses]
        is_aead = (sa0->crypto_alg == IPSEC_CRYPTO_ALG_AES_GCM_128 |

Solution: use the logical rather than the bitwise or.

Change-Id: Iffcc1ed2e68b14b248159cb117593d32c623c553
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/dpdk/ipsec/esp_decrypt.c
src/plugins/dpdk/ipsec/ipsec.c