From: Klas Lindfors Date: Tue, 18 Sep 2012 06:48:10 +0000 (+0200) Subject: const on static strings X-Git-Tag: v1.8.0~56 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e100212b5da0d40686361657466d2450b1d3a7b2;p=yubikey-personalization const on static strings --- 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];