From: Azat Khuzhin Date: Tue, 29 Jan 2019 18:06:37 +0000 (+0300) Subject: test/et/et: use evutil_socket_t* over int* for pointer to the pair X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0791a17204ff70bbea92520352a0c6e8d185fa4b;p=libevent test/et/et: use evutil_socket_t* over int* for pointer to the pair Next code will not work correctly under win x64: evutil_socket_t very_long_pair_name[2]; int *pair = very_long_pair_name; // <-- accessing the second word of the first element Because sizeof(evutil_socket_t) == sizeof(intptr_t) == 8 P.S. in the 5334762f another test had been fixed instead of the one that really fails. Fixes: 5334762f ("test/et/et: fix it by using appropriate type for the SOCKET (evutil_socket_t)") Refs: #750 --- diff --git a/test/regress_et.c b/test/regress_et.c index 4c7dc45f..5fa87a39 100644 --- a/test/regress_et.c +++ b/test/regress_et.c @@ -80,7 +80,7 @@ test_edgetriggered(void *data_) { struct basic_test_data *data = data_; struct event_base *base = data->base; - int *pair = data->pair; + evutil_socket_t *pair = data->pair; struct event *ev = NULL; const char *test = "test string"; int supports_et;