mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix some uses of int for socket in regress
This commit is contained in:
parent
84a7053e41
commit
5d389dc0f0
@ -72,7 +72,7 @@
|
||||
#include "regress.gen.h"
|
||||
#endif
|
||||
|
||||
int pair[2];
|
||||
evutil_socket_t pair[2];
|
||||
int test_ok;
|
||||
int called;
|
||||
struct event_base *global_base;
|
||||
|
@ -56,7 +56,7 @@ void regress_threads(void *);
|
||||
void test_bufferevent_zlib(void *);
|
||||
|
||||
/* Helpers to wrap old testcases */
|
||||
extern int pair[2];
|
||||
extern evutil_socket_t pair[2];
|
||||
extern int test_ok;
|
||||
extern int called;
|
||||
extern struct event_base *global_base;
|
||||
@ -66,7 +66,7 @@ evutil_socket_t regress_make_tmpfile(const void *data, size_t datalen);
|
||||
|
||||
struct basic_test_data {
|
||||
struct event_base *base;
|
||||
int pair[2];
|
||||
evutil_socket_t pair[2];
|
||||
|
||||
void (*legacy_test_fn)(void);
|
||||
|
||||
|
@ -162,7 +162,7 @@ static void *
|
||||
basic_test_setup(const struct testcase_t *testcase)
|
||||
{
|
||||
struct event_base *base = NULL;
|
||||
int spair[2] = { -1, -1 };
|
||||
evutil_socket_t spair[2] = { -1, -1 };
|
||||
struct basic_test_data *data = NULL;
|
||||
|
||||
#ifndef WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user