aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-md5.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 20:32:45 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-05 20:32:45 (GMT)
commit1767f7c11742769254067130058fb2a56be68147 (patch)
tree09fb05bb33df555af02d7f85183a68d0861c8590 /tests/test-md5.c
parent36ee258db7ce8f02cd30187988941cc3f7587899 (diff)
downloadhostap-1767f7c11742769254067130058fb2a56be68147.zip
hostap-1767f7c11742769254067130058fb2a56be68147.tar.gz
hostap-1767f7c11742769254067130058fb2a56be68147.tar.bz2
Resolve compiler warnings in the test programs
Diffstat (limited to 'tests/test-md5.c')
-rw-r--r--tests/test-md5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-md5.c b/tests/test-md5.c
index ecd3183..c33f1c2 100644
--- a/tests/test-md5.c
+++ b/tests/test-md5.c
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
{
struct {
char *data;
- u8 *hash;
+ char *hash;
} tests[] = {
{
"",
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) {
printf("MD5 test case %d:", i);
- addr[0] = tests[i].data;
+ addr[0] = (u8 *) tests[i].data;
len[0] = strlen(tests[i].data);
md5_vector(1, addr, len, hash);
if (memcmp(hash, tests[i].hash, 16) != 0) {
@@ -80,9 +80,9 @@ int main(int argc, char *argv[])
printf(" OK");
if (len[0]) {
- addr[0] = tests[i].data;
+ addr[0] = (u8 *) tests[i].data;
len[0] = strlen(tests[i].data);
- addr[1] = tests[i].data + 1;
+ addr[1] = (u8 *) tests[i].data + 1;
len[1] = strlen(tests[i].data) - 1;
md5_vector(1, addr, len, hash);
if (memcmp(hash, tests[i].hash, 16) != 0) {