Skip to content
Browse files

Fix a couple of compile warnings in the unit tests

  • Loading branch information...
1 parent 1fda492 commit 5a9a0141896c658af8dd31aa28cf258e510add55 Nick Mathewson committed
Showing with 2 additions and 3 deletions.
  1. +1 −2 test/regress.c
  2. +1 −1 test/regress_ssl.c
View
3 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. */
View
2 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()));
}
}

0 comments on commit 5a9a014

Please sign in to comment.
Something went wrong with that request. Please try again.