From e100212b5da0d40686361657466d2450b1d3a7b2 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 18 Sep 2012 08:48:10 +0200 Subject: [PATCH] const on static strings --- ykpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ykpers.c b/ykpers.c index 05c0b99..d96e2df 100644 --- a/ykpers.c +++ b/ykpers.c @@ -293,13 +293,13 @@ int ykp_AES_key_from_passphrase(YKP_CONFIG *cfg, const char *passphrase, const char *salt) { if (cfg) { - char *random_places[] = { + const char *random_places[] = { "/dev/srandom", "/dev/urandom", "/dev/random", 0 }; - char **random_place; + const char **random_place; uint8_t _salt[8]; size_t _salt_len = 0; unsigned char buf[sizeof(cfg->ykcore_config.key) + 4]; -- 2.39.5