From e331502d3d6af324dd6da8277a742fab85a8b666 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 27 May 2016 23:55:12 -0400 Subject: docs: improvement --- example/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/src') diff --git a/example/src/main.c b/example/src/main.c index 215a35a..981c414 100644 --- a/example/src/main.c +++ b/example/src/main.c @@ -38,7 +38,7 @@ static void read_cb(uv_link_observer_t* observer, if (nread < 0) { fprintf(stderr, "error or close\n"); - uv_link_close(&observer->link, close_cb); + uv_link_close((uv_link_t*) observer, close_cb); return; } @@ -60,7 +60,7 @@ static void connection_cb(uv_stream_t* s, int status) { CHECK(uv_link_observer_init(&client->observer)); CHECK(uv_link_chain(&client->middle, (uv_link_t*) &client->observer)); - client->observer.read_cb = read_cb; + client->observer.observer_read_cb = read_cb; client->observer.data = client; CHECK(uv_link_read_start((uv_link_t*) &client->observer)); -- cgit 1.4.1-2-gfad0