summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrouzier <rouzier@gmail.com>2015-10-04 14:30:07 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-10-04 17:16:14 -0400
commitb1d55997e53076f96ae9ecc8b03daf3e57ef7318 (patch)
tree365484824baf33a966eebfdcec6f5df3d9f6bf2f
parent2eb4f5efe9998b9eb0eda94beb713e89d20fb342 (diff)
downloadcurl-b1d55997e53076f96ae9ecc8b03daf3e57ef7318.tar.gz
hiperfifo: fix the pointer passed to WRITEDATA
Closes https://github.com/bagder/curl/pull/471
-rw-r--r--docs/examples/hiperfifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c
index 63614f7d4..1b5d4f5f5 100644
--- a/docs/examples/hiperfifo.c
+++ b/docs/examples/hiperfifo.c
@@ -330,7 +330,7 @@ static void new_conn(char *url, GlobalInfo *g )
conn->url = strdup(url);
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
- curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
+ curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);