From 5a9a0141896c658af8dd31aa28cf258e510add55 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 16 Nov 2012 16:17:07 -0500 Subject: [PATCH] Fix a couple of compile warnings in the unit tests --- test/regress.c | 3 +-- test/regress_ssl.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/regress.c b/test/regress.c index 7d3540e7..460ed581 100644 --- a/test/regress.c +++ b/test/regress.c @@ -2264,13 +2264,12 @@ test_event_once_never(void *ptr) { struct basic_test_data *data = ptr; struct timeval tv; - int r; /* Have one trigger in 10 seconds (don't worry, because) */ tv.tv_sec = 10; tv.tv_usec = 0; called = 0; - r = event_base_once(data->base, -1, EV_TIMEOUT, + event_base_once(data->base, -1, EV_TIMEOUT, timeout_called_once_cb, NULL, &tv); /* But shut down the base in 75 msec. */ diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 005e061b..acf2bd67 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -159,7 +159,7 @@ init_ssl(void) SSL_load_error_strings(); OpenSSL_add_all_algorithms(); if (SSLeay() != OPENSSL_VERSION_NUMBER) { - TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", OPENSSL_VERSION_NUMBER, SSLeay())); + TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", (unsigned long)OPENSSL_VERSION_NUMBER, (unsigned long) SSLeay())); } }