diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-05-27 23:55:12 -0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2016-05-27 23:55:12 -0400 |
commit | e331502d3d6af324dd6da8277a742fab85a8b666 (patch) | |
tree | e7f9306063d9e81537f0a3359c2eead291b58fee /example/src | |
parent | 5b0ecb73df1dabb12e26b6be71928e1f5023d182 (diff) | |
download | uv_link_t-e331502d3d6af324dd6da8277a742fab85a8b666.tar.gz |
docs: improvement
Diffstat (limited to 'example/src')
-rw-r--r-- | example/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |