aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 20:13:33 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-05 20:13:33 (GMT)
commite280cf6693928c56f8717ebf53fb0fc30fd439f2 (patch)
treeb24f10ccc496e45c323e29b6fb16caf9139df8cf /tests
parent668562d5fba3a0a1c5e05cbd360493abd4b7787d (diff)
downloadhostap-e280cf6693928c56f8717ebf53fb0fc30fd439f2.zip
hostap-e280cf6693928c56f8717ebf53fb0fc30fd439f2.tar.gz
hostap-e280cf6693928c56f8717ebf53fb0fc30fd439f2.tar.bz2
Get rid of some compiler warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/test-md4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-md4.c b/tests/test-md4.c
index 4058486..e390d0f 100644
--- a/tests/test-md4.c
+++ b/tests/test-md4.c
@@ -1,6 +1,6 @@
/*
* Test program for MD4 (test vectors from RFC 1320)
- * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -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("MD4 test case %d:", i);
- addr[0] = tests[i].data;
+ addr[0] = (u8 *) tests[i].data;
len[0] = strlen(tests[i].data);
md4_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;
md4_vector(1, addr, len, hash);
if (memcmp(hash, tests[i].hash, 16) != 0) {