diff options
-rw-r--r-- | tests/t-convert.c | 12 | ||||
-rw-r--r-- | tests/t-ed25519.c | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/tests/t-convert.c b/tests/t-convert.c index ec566777..121039c7 100644 --- a/tests/t-convert.c +++ b/tests/t-convert.c @@ -435,7 +435,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.stdlen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "STD", "wrong result", buflen); + data[idx].value, "STD", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -452,7 +453,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.sshlen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "SSH", "wrong result", buflen); + data[idx].value, "SSH", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -471,7 +473,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.usglen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "USG", "wrong result", buflen); + data[idx].value, "USG", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } @@ -492,7 +495,8 @@ check_formats (void) if (gcry_mpi_cmp (a, b) || data[idx].a.pgplen != buflen) { fail ("error scanning value %d from %s: %s (%lu)\n", - data[idx].value, "PGP", "wrong result", buflen); + data[idx].value, "PGP", "wrong result", + (long unsigned int)buflen); showmpi ("expected:", a); showmpi (" got:", b); } diff --git a/tests/t-ed25519.c b/tests/t-ed25519.c index 2f59a890..73628a81 100644 --- a/tests/t-ed25519.c +++ b/tests/t-ed25519.c @@ -74,7 +74,7 @@ show_sexp (const char *prefix, gcry_sexp_t a) /* Prepend FNAME with the srcdir environment variable's value and - retrun an allocated filename. */ + * return an allocated filename. */ char * prepend_srcdir (const char *fname) { |