diff options
author | Simon Josefsson <simon@josefsson.org> | 2012-08-18 10:06:39 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2012-08-18 10:06:39 +0200 |
commit | c5226f57807bf53fd3aff5ce2f36d62f2e9b7553 (patch) | |
tree | be4ac7068919742361c72e6f944cf5c0b326331e /tests | |
parent | d04da8d99388e56603e7a65208577115e740e021 (diff) | |
download | libtasn1-c5226f57807bf53fd3aff5ce2f36d62f2e9b7553.tar.gz libtasn1-c5226f57807bf53fd3aff5ce2f36d62f2e9b7553.tar.bz2 libtasn1-c5226f57807bf53fd3aff5ce2f36d62f2e9b7553.zip |
Fix compilation warnings.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Test_indefinite.c | 2 | ||||
-rw-r--r-- | tests/Test_simple.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Test_indefinite.c b/tests/Test_indefinite.c index 1b84d13..f77e69a 100644 --- a/tests/Test_indefinite.c +++ b/tests/Test_indefinite.c @@ -103,7 +103,7 @@ main (int argc, char *argv[]) if (result != ASN1_SUCCESS) { asn1_perror (result); - printf ("Cannot decode BER data (size %ld)\n", size); + printf ("Cannot decode BER data (size %ld)\n", (long) size); exit (1); } diff --git a/tests/Test_simple.c b/tests/Test_simple.c index 9224036..7527184 100644 --- a/tests/Test_simple.c +++ b/tests/Test_simple.c @@ -117,7 +117,7 @@ main (int argc, char *argv[]) if (der_len != tv[i].derlen || memcmp (der, tv[i].der, der_len) != 0) { - fprintf (stderr, "asn1_bit_der iter %ld\n", i); + fprintf (stderr, "asn1_bit_der iter %lu\n", (unsigned long) i); return 1; } @@ -128,7 +128,7 @@ main (int argc, char *argv[]) if (result != ASN1_SUCCESS || ret_len != tv[i].derlen || bit_len != tv[i].bitlen) { - fprintf (stderr, "asn1_get_bit_der iter %ld\n", i); + fprintf (stderr, "asn1_get_bit_der iter %lu\n", (unsigned long) i); return 1; } } |