Fix some uses of int for socket in regress

This commit is contained in:
Nick Mathewson 2010-10-26 22:27:57 -04:00
parent 84a7053e41
commit 5d389dc0f0
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

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

View File

@ -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