print size_t by casting to unsigned long
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14740 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -71,8 +71,8 @@ main(int argc, char **argv)
|
||||
str = strdup(t->result);
|
||||
len = base64_decode(t->result, str);
|
||||
if(len != t->len) {
|
||||
fprintf(stderr, "failed test %d: len %d != %d\n", numtest,
|
||||
len, t->len);
|
||||
fprintf(stderr, "failed test %d: len %lu != %lu\n", numtest,
|
||||
(unsigned long)len, (unsigned long)t->len);
|
||||
numerr++;
|
||||
} else if(memcmp(str, t->data, t->len) != 0) {
|
||||
fprintf(stderr, "failed test %d: data\n", numtest);
|
||||
|
@@ -75,8 +75,8 @@ main(int argc, char **argv)
|
||||
len = strlen(str);
|
||||
len = hex_decode(t->result, str, len);
|
||||
if(len != t->len) {
|
||||
fprintf(stderr, "failed test %d: len %d != %d\n", numtest,
|
||||
len, t->len);
|
||||
fprintf(stderr, "failed test %d: len %lu != %lu\n", numtest,
|
||||
(unsigned long)len, (unsigned long)t->len);
|
||||
numerr++;
|
||||
} else if(memcmp(str, t->data, t->len) != 0) {
|
||||
fprintf(stderr, "failed test %d: data\n", numtest);
|
||||
|
Reference in New Issue
Block a user