summaryrefslogtreecommitdiffstats
path: root/test/bad_dtls_test.c
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2017-04-13 10:20:04 -0400
committerRich Salz <rsalz@openssl.org>2017-04-19 12:51:08 -0400
commitd1186c30a265aedecb1b497c220b4cb7c2a7f4ec (patch)
tree249eec318ace925cd3311685e348053d667a7c8e /test/bad_dtls_test.c
parent87b81496fec2f969371b3167dea3b6aaed9f9f9d (diff)
Fix minor compiler issues.
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3220)
Diffstat (limited to 'test/bad_dtls_test.c')
-rw-r--r--test/bad_dtls_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/bad_dtls_test.c b/test/bad_dtls_test.c
index 43733e97b1..0bfbebf7e1 100644
--- a/test/bad_dtls_test.c
+++ b/test/bad_dtls_test.c
@@ -548,8 +548,8 @@ static int test_bad_dtls(void)
if (!TEST_true(send_record(rbio, SSL3_RT_APPLICATION_DATA, tests[i].seq,
&tests[i].seq, sizeof(uint64_t)))) {
- TEST_error("Failed to send data seq #0x%lx (%d)\n",
- tests[i].seq, i);
+ TEST_error("Failed to send data seq #0x%x%08x (%d)\n",
+ (unsigned int)(tests[i].seq >> 32), (unsigned int)tests[i].seq, i);
goto end;
}
@@ -558,8 +558,8 @@ static int test_bad_dtls(void)
ret = SSL_read(con, recv_buf, 2 * sizeof(uint64_t));
if (!TEST_int_eq(ret, (int)sizeof(uint64_t))) {
- TEST_error("SSL_read failed or wrong size on seq#0x%lx (%d)\n",
- tests[i].seq, i);
+ TEST_error("SSL_read failed or wrong size on seq#0x%x%08x (%d)\n",
+ (unsigned int)(tests[i].seq >> 32), (unsigned int)tests[i].seq, i);
goto end;
}
if (!TEST_true(recv_buf[0] == tests[i].seq))