aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-03-13 12:36:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-03-13 12:36:22 +0000
commitf3c0afa5b8f1460020f3718e2b050d4940240a58 (patch)
tree6404af1d23daf49edebf842310a0014d8ca9b842
parenta69ba639baa33c34ecaf58af9c002b09f7b47e8d (diff)
fix code that is normally #ifdef'ed out
-rw-r--r--docs/examples/post-callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c
index 531b68156..1a044808a 100644
--- a/docs/examples/post-callback.c
+++ b/docs/examples/post-callback.c
@@ -75,7 +75,7 @@ int main(void)
*/
#ifdef USE_CHUNKED
{
- curl_slist *chunk = NULL;
+ struct curl_slist *chunk = NULL;
chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked");
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
@@ -98,7 +98,7 @@ int main(void)
/* A less good option would be to enforce HTTP 1.0, but that might also
have other implications. */
{
- curl_slist *chunk = NULL;
+ struct curl_slist *chunk = NULL;
chunk = curl_slist_append(chunk, "Expect:");
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);