Fix for compilation errors for icc:
error #188: enumerated type mixed with another type
Fixes:
00c58901f1b3 ("examples/l2fwd-crypto: use key-value list of supported algorithms")
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
for (i = 0; i < RTE_CRYPTO_CIPHER_LIST_END; i++) {
if (!strcmp(supported_cipher_algo[i], optarg)) {
- *algo = i;
+ *algo = (enum rte_crypto_cipher_algorithm)i;
return 0;
}
}
for (i = 0; i < RTE_CRYPTO_AUTH_LIST_END; i++) {
if (!strcmp(supported_auth_algo[i], optarg)) {
- *algo = i;
+ *algo = (enum rte_crypto_auth_algorithm)i;
return 0;
}
}