test: fix warning in test-tcp-open

PR-URL: https://github.com/libuv/libuv/pull/1946
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Santiago Gimeno 2018-08-13 19:44:51 +02:00
parent e57e07172e
commit 589736303f
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE

View File

@ -176,7 +176,7 @@ static void timer_cb(uv_timer_t* handle) {
int r;
/* Shutdown on drain. */
r = uv_shutdown(&shutdown_req, &client, shutdown_cb);
r = uv_shutdown(&shutdown_req, (uv_stream_t*) &client, shutdown_cb);
ASSERT(r == 0);
shutdown_requested++;
}