aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-12 10:38:58 +0100
committerMattias Andrée <maandree@kth.se>2022-02-12 10:38:58 +0100
commitd5842b778ddb146a220a0386a4f6e83007142f0c (patch)
tree1340806b30c0c841d62968034773b41786747e7e
parentFix warnings (diff)
downloadlibar2-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>
Diffstat (limited to '')
-rw-r--r--libar2.h2
-rw-r--r--libar2_latest_argon2_version.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libar2.h b/libar2.h
index 2628217..dc0e3f3 100644
--- a/libar2.h
+++ b/libar2.h
@@ -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;