diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-12 10:38:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-12 10:38:58 +0100 |
commit | d5842b778ddb146a220a0386a4f6e83007142f0c (patch) | |
tree | 1340806b30c0c841d62968034773b41786747e7e | |
parent | Fix warnings (diff) | |
download | libar2-d5842b778ddb146a220a0386a4f6e83007142f0c.tar.gz libar2-d5842b778ddb146a220a0386a4f6e83007142f0c.tar.bz2 libar2-d5842b778ddb146a220a0386a4f6e83007142f0c.tar.xz |
Make libar2_latest_argon2_version const
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libar2.h | 2 | ||||
-rw-r--r-- | libar2_latest_argon2_version.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -456,7 +456,7 @@ struct libar2_context { /** * The latest versions of Argon2 that is supported */ -extern enum libar2_argon2_version libar2_latest_argon2_version; +extern const enum libar2_argon2_version libar2_latest_argon2_version; /** diff --git a/libar2_latest_argon2_version.c b/libar2_latest_argon2_version.c index 043441d..14f8977 100644 --- a/libar2_latest_argon2_version.c +++ b/libar2_latest_argon2_version.c @@ -2,4 +2,4 @@ #include "common.h" -enum libar2_argon2_version libar2_latest_argon2_version = LIBAR2_ARGON2_VERSION_13; +const enum libar2_argon2_version libar2_latest_argon2_version = LIBAR2_ARGON2_VERSION_13; |