From f5027cfbf33eaf2c38b563edb2c2beeeea163bce Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Feb 2019 18:38:51 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- hmac_unmarshal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hmac_unmarshal.c b/hmac_unmarshal.c index cc62d5c..df32560 100644 --- a/hmac_unmarshal.c +++ b/hmac_unmarshal.c @@ -38,10 +38,10 @@ libsha2_hmac_unmarshal(struct libsha2_hmac_state *restrict state, const void *re return 0; } - state->outsize = *(size_t *)&buf[off]; + state->outsize = *(const size_t *)&buf[off]; off += sizeof(size_t); - state->inited = *(unsigned char *)&buf[off]; + state->inited = *(const unsigned char *)&buf[off]; off += sizeof(unsigned char); memcpy(state->ipad, &buf[off], state->sha2_state.chunk_size); -- cgit v1.2.3-70-g09d2