cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Postit example doesn't work anymore

From: Tor Arntsen <tor_at_spacetec.no>
Date: Sun, 28 Mar 2004 20:18:46 +0200

On Mar 28, 19:03, Bastiaan Naber wrote:
>I have been using the postit example in my program for some time but now
>somone told me that it does not compile with the new libcurl anymore.
>
>Here is part of the example: (it is also on the curl site)
>
>******************8
>int main(int argc, char *argv[])
>{
> CURL *curl;
> CURLcode res;
>
> struct HttpPost *formpost=NULL;
> struct HttpPost *lastptr=NULL;
[...]

Without any further checking, at least the above should be changed to
use struct curl_httpost instead of struct HttpPost.

>I get the following error:
>
>postit2.c: In function `main':
>postit2.c:48: warning: passing arg 1 of `curl_formadd' from incompatible
>pointer type

-Tor
Received on 2004-03-28