aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_state_duplicate.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-26 12:02:53 +0100
committerMattias Andrée <maandree@kth.se>2022-02-26 12:02:53 +0100
commit5d36b9c7ed3c5790060731bb43b5ce74e04d856d (patch)
treecc7218b850253b996fa5e87cb191b348cf53309e /libkeccak_state_duplicate.c
parentMerge pull request #18 from oyheskes/remove-unused-variables (diff)
downloadlibkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.gz
libkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.bz2
libkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.xz
Remove useless restricts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libkeccak_state_duplicate.c')
-rw-r--r--libkeccak_state_duplicate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libkeccak_state_duplicate.c b/libkeccak_state_duplicate.c
index ab21c20..75f85da 100644
--- a/libkeccak_state_duplicate.c
+++ b/libkeccak_state_duplicate.c
@@ -9,9 +9,9 @@
* @return The duplicate, `NULL` on error
*/
struct libkeccak_state *
-libkeccak_state_duplicate(const struct libkeccak_state *restrict src)
+libkeccak_state_duplicate(const struct libkeccak_state *src)
{
- struct libkeccak_state *restrict dest = malloc(sizeof(struct libkeccak_state));
+ struct libkeccak_state *dest = malloc(sizeof(struct libkeccak_state));
if (!dest || libkeccak_state_copy(dest, src)) {
libkeccak_state_free(dest);
return NULL;