From: Jonathan L. <jon...@us...> - 2010-05-21 00:30:29
|
Update of /cvsroot/srtp/srtp/crypto/test In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv8818/crypto/test Modified Files: sha1_driver.c Log Message: Fix warnings exposed by gcc -Wcast-qual and -Wshadow. (Patch from Randell Jesup 07/10/2009, cleaned up for current tip-of-tree.) Index: sha1_driver.c =================================================================== RCS file: /cvsroot/srtp/srtp/crypto/test/sha1_driver.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** sha1_driver.c 17 May 2010 19:42:26 -0000 1.6 --- sha1_driver.c 21 May 2010 00:30:21 -0000 1.7 *************** *** 114,120 **** #if VERBOSE printf("PASSED: reference value: %s\n", ! octet_string_hex_string((uint8_t *)test_case->hash, 20)); printf("PASSED: computed value: %s\n", ! octet_string_hex_string((uint8_t *)hash_value, 20)); #endif return err_status_ok; --- 114,120 ---- #if VERBOSE printf("PASSED: reference value: %s\n", ! octet_string_hex_string((const uint8_t *)test_case->hash, 20)); printf("PASSED: computed value: %s\n", ! octet_string_hex_string((const uint8_t *)hash_value, 20)); #endif return err_status_ok; *************** *** 122,128 **** printf("reference value: %s\n", ! octet_string_hex_string((uint8_t *)test_case->hash, 20)); printf("computed value: %s\n", ! octet_string_hex_string((uint8_t *)hash_value, 20)); return err_status_algo_fail; --- 122,128 ---- printf("reference value: %s\n", ! octet_string_hex_string((const uint8_t *)test_case->hash, 20)); printf("computed value: %s\n", ! octet_string_hex_string((const uint8_t *)hash_value, 20)); return err_status_algo_fail; |