Fix a couple of compile warnings in the unit tests

This commit is contained in:
Nick Mathewson 2012-11-16 16:17:07 -05:00
parent 1fda492878
commit 5a9a014189
2 changed files with 2 additions and 3 deletions

View File

@ -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. */

View File

@ -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()));
}
}