mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
samples: update timer callback prototype
The socks5 proxy sample application was still using the old prototype where timer callbacks take a second 'status' parameter but that was removed in commit db2a9072 ("unix, windows: removed unused status parameter") from March 2014. PR-URL: https://github.com/libuv/libuv/pull/1250 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
5fc8aecd81
commit
7b9f379923
@ -95,7 +95,7 @@ static int do_kill(client_ctx *cx);
|
||||
static int do_almost_dead(client_ctx *cx);
|
||||
static int conn_cycle(const char *who, conn *a, conn *b);
|
||||
static void conn_timer_reset(conn *c);
|
||||
static void conn_timer_expire(uv_timer_t *handle, int status);
|
||||
static void conn_timer_expire(uv_timer_t *handle);
|
||||
static void conn_getaddrinfo(conn *c, const char *hostname);
|
||||
static void conn_getaddrinfo_done(uv_getaddrinfo_t *req,
|
||||
int status,
|
||||
@ -582,10 +582,9 @@ static void conn_timer_reset(conn *c) {
|
||||
0));
|
||||
}
|
||||
|
||||
static void conn_timer_expire(uv_timer_t *handle, int status) {
|
||||
static void conn_timer_expire(uv_timer_t *handle) {
|
||||
conn *c;
|
||||
|
||||
CHECK(0 == status);
|
||||
c = CONTAINER_OF(handle, conn, timer_handle);
|
||||
c->result = UV_ETIMEDOUT;
|
||||
do_next(c->client);
|
||||
|
Loading…
x
Reference in New Issue
Block a user