From 183c3fa48acaf4561d5269ab9a766d13ae70140c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 2 Apr 2012 21:23:56 +0200 Subject: [PATCH] des: Fix half a dozen warnings Signed-off-by: Michael Niedermayer --- libavutil/des.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavutil/des.c b/libavutil/des.c index e1c0ebcbfb..4598f324bc 100644 --- a/libavutil/des.c +++ b/libavutil/des.c @@ -417,10 +417,10 @@ int main(void) { for (i = 0; i < 1000; i++) { key[0] = rand64(); key[1] = rand64(); key[2] = rand64(); data = rand64(); - av_des_init(&d, key, 192, 0); - av_des_crypt(&d, &ct, &data, 1, NULL, 0); - av_des_init(&d, key, 192, 1); - av_des_crypt(&d, &ct, &ct, 1, NULL, 1); + av_des_init(&d, (uint8_t*)key, 192, 0); + av_des_crypt(&d, (uint8_t*)&ct, (uint8_t*)&data, 1, NULL, 0); + av_des_init(&d, (uint8_t*)key, 192, 1); + av_des_crypt(&d, (uint8_t*)&ct, (uint8_t*)&ct, 1, NULL, 1); if (ct != data) { printf("Test 2 failed\n"); return 1;