From d5842b778ddb146a220a0386a4f6e83007142f0c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Feb 2022 10:38:58 +0100 Subject: Make libar2_latest_argon2_version const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libar2.h | 2 +- libar2_latest_argon2_version.c | 2 +- 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; -- cgit v1.2.3-70-g09d2