diff options
author | Mattias Andrée <maandree@kth.se> | 2019-02-11 16:57:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-02-11 16:57:54 +0100 |
commit | 3547923d8653d72fe8a6a305107ed2e5dca6577c (patch) | |
tree | aa08e3ca8cb8d7f7b64126a6687af4abbe0994ef /libkeccak_state_copy.c | |
parent | Split most .c files into one per function and flatten file hierarchy (diff) | |
download | libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.gz libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.bz2 libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.xz |
Deprecate typedefs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libkeccak_state_copy.c')
-rw-r--r-- | libkeccak_state_copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkeccak_state_copy.c b/libkeccak_state_copy.c index 76672d2..97a76ef 100644 --- a/libkeccak_state_copy.c +++ b/libkeccak_state_copy.c @@ -10,9 +10,9 @@ * @return Zero on success, -1 on error */ int -libkeccak_state_copy(libkeccak_state_t *restrict dest, const libkeccak_state_t *restrict src) +libkeccak_state_copy(struct libkeccak_state *restrict dest, const struct libkeccak_state *restrict src) { - memcpy(dest, src, sizeof(libkeccak_state_t)); + memcpy(dest, src, sizeof(struct libkeccak_state)); dest->M = malloc(src->mlen * sizeof(char)); if (!dest->M) return -1; |