From c5226f57807bf53fd3aff5ce2f36d62f2e9b7553 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sat, 18 Aug 2012 10:06:39 +0200 Subject: Fix compilation warnings. --- tests/Test_indefinite.c | 2 +- tests/Test_simple.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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; } } -- cgit v1.2.3