examples/ipsec-secgw: fix anonymous union initialization
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 8 Apr 2016 17:01:09 +0000 (18:01 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Apr 2016 20:28:39 +0000 (22:28 +0200)
commit66085224474943288083f943725ba73192f558f1
treeeb73250817c95773652d2f6757ad7e80c34d23d6
parent6736fe538128b35938fe499856a031626f16eeb1
examples/ipsec-secgw: fix anonymous union initialization

In icc 14.0, compilation was broken:

examples/ipsec-secgw/sa.c(212): error: a designator for an anonymous
union member can only appear within braces corresponding to that anonymous union
        .cipher = { RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_CIPHER_AES_CBC,
         ^

The member in anonymous union initialization should be inside '{}',
otherwise it will report an error.

Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/ipsec-secgw/sa.c