diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
commit | f68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch) | |
tree | e80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/getinmemory.c | |
parent | 7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff) |
use the newer option names
Diffstat (limited to 'docs/examples/getinmemory.c')
-rw-r--r-- | docs/examples/getinmemory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index e45beb070..f7e27460f 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -60,7 +60,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); /* we pass our 'chunk' struct to the callback function */ - curl_easy_setopt(curl_handle, CURLOPT_FILE, (void *)&chunk); + curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); /* get it! */ curl_easy_perform(curl_handle); |