aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/simplepost.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-07-12 21:11:10 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-07-12 21:11:10 +0000
commit49ce3e5160a9576e797bf87cef012b09d1c54ecb (patch)
tree9b8e476de272cfd92bb3d857aa3c6eef273140b7 /docs/examples/simplepost.c
parent4a728747e6f8845e500910e397dfc99aaf4a7984 (diff)
Fixed some compile warnings and errors and improved portability in the
examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
Diffstat (limited to 'docs/examples/simplepost.c')
-rw-r--r--docs/examples/simplepost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/simplepost.c b/docs/examples/simplepost.c
index 1d156c583..9bab83b7d 100644
--- a/docs/examples/simplepost.c
+++ b/docs/examples/simplepost.c
@@ -9,6 +9,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <curl/curl.h>
int main(void)
@@ -16,7 +17,7 @@ int main(void)
CURL *curl;
CURLcode res;
- char *postthis="moo mooo moo moo";
+ static const char *postthis="moo mooo moo moo";
curl = curl_easy_init();
if(curl) {