From 9b3a4f28fd58033a48d7b7284a1da30182d7d4b8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 6 Jun 2020 22:28:52 +0200 Subject: [PATCH] constify --- src/minisign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minisign.c b/src/minisign.c index 117d695..3c1d77e 100644 --- a/src/minisign.c +++ b/src/minisign.c @@ -621,7 +621,7 @@ write_pk_file(const char *pk_file, const PubkeyStruct *pubkey_struct) } xfprintf(fp, COMMENT_PREFIX "minisign public key %" PRIX64 "\n", le64_load(pubkey_struct->keynum_pk.keynum)); - xfput_b64(fp, (unsigned char *) (void *) pubkey_struct, + xfput_b64(fp, (const unsigned char *) (const void *) pubkey_struct, sizeof *pubkey_struct); xfclose(fp); }