diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-02 23:23:56 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-02 23:23:56 +0400 |
commit | 183c3fa48acaf4561d5269ab9a766d13ae70140c (patch) | |
tree | 4c2736d07acf31289be390dac6d7681491c43502 /libavutil | |
parent | 2663540821ee010edc7a47316b00a4745aaf973c (diff) |
des: Fix half a dozen warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/des.c | 8 |
1 files 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; |