summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2011-03-04 08:28:52 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2011-03-04 08:28:52 +0100
commitf07ef1de9baeb2add514c51f59d4bc3c659c2ca4 (patch)
tree79a5de6a15dec6283cc58f3aeade4ea7fd435743 /crypto/testmgr.h
parentrandom: update interface comments to reflect reality (diff)
downloadlinux-f07ef1de9baeb2add514c51f59d4bc3c659c2ca4.tar.xz
linux-f07ef1de9baeb2add514c51f59d4bc3c659c2ca4.zip
crypto: tcrypt - do not attempt to write to readonly variable
Commit da7f033ddc9fdeb (”crypto: cryptomgr - Add test infrastructure”) added a const to variable which is later used as target buffer of memcpy. crypto/tcrypt.c:217:12: warning: passing 'const char (*)[128]' to parameter of type 'void *' discards qualifiers memset(&iv, 0xff, iv_len); crypto/tcrypt.c:test_cipher_speed() - unsigned char *key, iv[128]; + const char *key, iv[128]; ... memset(&iv, 0xff, iv_len); Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions