X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Falgo%2Fmd2.c;h=22e255b2f3ad78783f7e0e5bba0fd9e34b6d14b4;hb=202e173ecdce67ba47b646308ae713b5801c56da;hp=53b44865776caf105d0a0d27d821c8b083103d5e;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/algo/md2.c b/bertos/algo/md2.c index 53b44865..22e255b2 100644 --- a/bertos/algo/md2.c +++ b/bertos/algo/md2.c @@ -39,7 +39,7 @@ * to md2_perm function you must chanche CONFIG_MD2_STD_PERM defined in * appconfig.h. * If you need to store array in program memory you must define - * a macro _PROGMEM (for more info see mware/pgm.h). + * a macro _PROGMEM (for more info see cpu/pgm.h). * * * \version $Id$ @@ -92,7 +92,7 @@ #include #include //ASSERT() #include //MIN(), countof(), ROTR(); -#include +#include #if CONFIG_MD2_STD_PERM @@ -340,7 +340,7 @@ bool md2_test(void) }; - const uint8_t *result[] = { + const char *result[] = { "\x83\x50\xe5\xa3\xe2\x4c\x15\x3d\xf2\x27\x5c\x9f\x80\x69\x27\x73", "\xab\x4f\x49\x6b\xfb\x2a\x53\x0b\x21\x9f\xf3\x30\x31\xfe\x06\xb0", "\x4e\x8d\xdf\xf3\x65\x02\x92\xab\x5a\x41\x08\xc3\xaa\x47\x94\x0b", @@ -348,7 +348,7 @@ bool md2_test(void) }; - for (int i = 0; i < countof(test); i++) + for (size_t i = 0; i < countof(test); i++) { md2_init(&context); md2_update(&context, test[i], strlen(test[i]));