mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix a couple of compile warnings in the unit tests
This commit is contained in:
parent
1fda492878
commit
5a9a014189
@ -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. */
|
||||
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user