diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2006-05-02 09:19:31 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-02 09:19:31 +0000 | 
| commit | 80a0b81c2a7550f106585827491433278818969c (patch) | |
| tree | df453ef40ee8af13006e2ab1bdb018bdf3e97a9a /docs/examples | |
| parent | 06a7b0561bca2b7dccabeef4c9bb9237e514e1a5 (diff) | |
Make this code use the proper pointers
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/multi-post.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/multi-post.c b/docs/examples/multi-post.c index 0f9a599ac..b89e2d632 100644 --- a/docs/examples/multi-post.c +++ b/docs/examples/multi-post.c @@ -24,12 +24,13 @@ int main(int argc, char *argv[])    CURLM *multi_handle;    int still_running; -  struct HttpPost *formpost=NULL; -  struct HttpPost *lastptr=NULL; +  struct curl_httppost *formpost=NULL; +  struct curl_httppost *lastptr=NULL;    struct curl_slist *headerlist=NULL;    char buf[] = "Expect:"; -  /* Fill in the file upload field */ +  /* Fill in the file upload field. This makes libcurl load data from   +     the given file name when curl_easy_perform() is called. */    curl_formadd(&formpost,                 &lastptr,                 CURLFORM_COPYNAME, "sendfile", @@ -43,7 +44,6 @@ int main(int argc, char *argv[])                 CURLFORM_COPYCONTENTS, "postit2.c",                 CURLFORM_END); -    /* Fill in the submit field too, even if this is rarely needed */    curl_formadd(&formpost,                 &lastptr,  | 
