From patchwork Mon Apr 4 08:46:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mrzyglod X-Patchwork-Id: 11900 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A723A2C69; Mon, 4 Apr 2016 10:48:04 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 26CFD2C66 for ; Mon, 4 Apr 2016 10:48:02 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 04 Apr 2016 01:47:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,439,1455004800"; d="scan'208";a="947503255" Received: from unknown ([10.217.248.155]) by orsmga002.jf.intel.com with SMTP; 04 Apr 2016 01:47:41 -0700 Received: by (sSMTP sendmail emulation); Mon, 04 Apr 2016 10:47:19 +0200 From: Daniel Mrzyglod To: dev@dpdk.org Cc: jingjing.wu@intel.com, pablo.de.lara.guarch@intel.com Date: Mon, 4 Apr 2016 10:46:50 +0200 Message-Id: <1459759611-13788-2-git-send-email-danielx.t.mrzyglod@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459759611-13788-1-git-send-email-danielx.t.mrzyglod@intel.com> References: <1459759611-13788-1-git-send-email-danielx.t.mrzyglod@intel.com> Subject: [dpdk-dev] [PATCH 1/2] examples/l2fwd-crypto: fix for icc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 35171d1..182dc56 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -902,7 +902,7 @@ parse_cipher_algo(enum rte_crypto_cipher_algorithm *algo, char *optarg) 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; } } @@ -978,7 +978,7 @@ parse_auth_algo(enum rte_crypto_auth_algorithm *algo, char *optarg) 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; } }