]> err.no Git - yubikey-personalization/commitdiff
const on static strings
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 06:48:10 +0000 (08:48 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 06:48:10 +0000 (08:48 +0200)
ykpers.c

index 05c0b99bfb7dbe3a04adae660851cef8e5f55915..d96e2df03ff02c85f67e12025010f5b98fe11f04 100644 (file)
--- 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];