diff --git a/tests/client_test.c b/tests/client_test.c index 564638b..822dd1e 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -1583,7 +1583,7 @@ void async_disconnect(valkeyAsyncContext *ac) { } /* Testcase timeout, will trigger a failure */ -void timeout_cb(int fd, short event, void *arg) { +void timeout_cb(evutil_socket_t fd, short event, void *arg) { (void) fd; (void) event; (void) arg; printf("Timeout in async testing!\n"); exit(1); diff --git a/tests/clusterclient_async.c b/tests/clusterclient_async.c index 134de2c..8e19a68 100644 --- a/tests/clusterclient_async.c +++ b/tests/clusterclient_async.c @@ -54,7 +54,7 @@ int num_running = 0; int resend_failed_cmd = 0; int send_to_all = 0; -void sendNextCommand(int, short, void *); +void sendNextCommand(evutil_socket_t, short, void *); void printReply(const valkeyReply *reply) { switch (reply->type) { @@ -102,7 +102,7 @@ void replyCallback(valkeyClusterAsyncContext *acc, void *r, void *privdata) { } } -void sendNextCommand(int fd, short kind, void *arg) { +void sendNextCommand(evutil_socket_t fd, short kind, void *arg) { UNUSED(fd); UNUSED(kind); valkeyClusterAsyncContext *acc = arg; diff --git a/tests/clusterclient_reconnect_async.c b/tests/clusterclient_reconnect_async.c index e0ed761..3b76e9d 100644 --- a/tests/clusterclient_reconnect_async.c +++ b/tests/clusterclient_reconnect_async.c @@ -20,7 +20,7 @@ /* Unfortunately there is no error code for this error to match */ #define VALKEY_ENOCLUSTER "ERR This instance has cluster support disabled" -void sendNextCommand(int, short, void *); +void sendNextCommand(evutil_socket_t, short, void *); void connectToValkey(valkeyClusterAsyncContext *acc) { /* reset context in case of reconnect */ @@ -61,7 +61,7 @@ void replyCallback(valkeyClusterAsyncContext *acc, void *r, void *privdata) { event_base_once(acc->adapter, -1, EV_TIMEOUT, sendNextCommand, acc, NULL); } -void sendNextCommand(int fd, short kind, void *arg) { +void sendNextCommand(evutil_socket_t fd, short kind, void *arg) { UNUSED(fd); UNUSED(kind); valkeyClusterAsyncContext *acc = arg;