summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDimitre Piskyulev <piskyulev@users.sourceforge.net>2010-10-27 17:31:52 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-27 17:32:06 -0400
commitf817bfa4d37448f21d6f753769f6ad91d113dd7c (patch)
tree72018d5e3c4ab59d02a12d49ee6de2cf6b90ed77 /test
parent19c71e7454305e4e10c7d0c6ed1520fe5e1521df (diff)
downloadlibevent-f817bfa4d37448f21d6f753769f6ad91d113dd7c.tar.gz
Fix some ints to evutil_socket_t; make tests pass on win64.
Diffstat (limited to 'test')
-rw-r--r--test/regress_util.c6
-rw-r--r--test/test-eof.c2
-rw-r--r--test/test-weof.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/regress_util.c b/test/regress_util.c
index 4eea2e9c..fc263bcf 100644
--- a/test/regress_util.c
+++ b/test/regress_util.c
@@ -602,7 +602,7 @@ end:
}
struct example_struct {
- long a;
+ const char *a;
const char *b;
long c;
};
@@ -612,11 +612,11 @@ test_evutil_upcast(void *arg)
{
struct example_struct es1;
const char **cp;
- es1.a = 5;
+ es1.a = "World";
es1.b = "Hello";
es1.c = -99;
- tt_int_op(evutil_offsetof(struct example_struct, b), ==, sizeof(long));
+ tt_int_op(evutil_offsetof(struct example_struct, b), ==, sizeof(char*));
cp = &es1.b;
tt_ptr_op(EVUTIL_UPCAST(cp, struct example_struct, b), ==, &es1);
diff --git a/test/test-eof.c b/test/test-eof.c
index fd226193..3d4be93d 100644
--- a/test/test-eof.c
+++ b/test/test-eof.c
@@ -62,7 +62,7 @@ main(int argc, char **argv)
{
struct event ev;
const char *test = "test string";
- int pair[2];
+ evutil_socket_t pair[2];
#ifdef WIN32
WORD wVersionRequested;
diff --git a/test/test-weof.c b/test/test-weof.c
index 8d1b0ab8..2423d217 100644
--- a/test/test-weof.c
+++ b/test/test-weof.c
@@ -33,7 +33,7 @@
#define __func__ _EVENT___func__
#endif
-int pair[2];
+evutil_socket_t pair[2];
int test_okay = 1;
int called = 0;