]> code.ossystems Code Review - meta-freescale.git/blob
916c47e9dad5a5776c812ab6e53c9cb9b68a8f67
[meta-freescale.git] /
1 From 605210c8ae9241cad6c4ec071f5193bf3e83b2d4 Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Mon, 8 Feb 2016 17:15:25 +0200
4 Subject: [PATCH 39/48] cryptodev: explicitly discard const qualifier
5
6 The const qualifier is discarded by the assignment as a result of how
7 the variables are defined. This patch drops the const qualifier
8 explicitly to avoid build errors.
9
10 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
11 ---
12  crypto/engine/eng_cryptodev.c | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
16 index 4613d2d..2791ca3 100644
17 --- a/crypto/engine/eng_cryptodev.c
18 +++ b/crypto/engine/eng_cryptodev.c
19 @@ -1592,7 +1592,7 @@ static int cryptodev_digest_update(EVP_MD_CTX *ctx, const void *data,
20       * cryptodev calls and accumulating small amounts of data
21       */
22      if (ctx->flags & EVP_MD_CTX_FLAG_ONESHOT) {
23 -        state->mac_data = data;
24 +        state->mac_data = (void *)data;
25          state->mac_len = count;
26      } else {
27          state->mac_data =
28 -- 
29 2.7.0
30