summaryrefslogtreecommitdiff
path: root/docs/examples/postit2.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/postit2.c
parent4a728747e6f8845e500910e397dfc99aaf4a7984 (diff)
downloadcurl-49ce3e5160a9576e797bf87cef012b09d1c54ecb.tar.gz
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/postit2.c')
-rw-r--r--docs/examples/postit2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c
index e022d284f..0660cc5b5 100644
--- a/docs/examples/postit2.c
+++ b/docs/examples/postit2.c
@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
struct curl_httppost *formpost=NULL;
struct curl_httppost *lastptr=NULL;
struct curl_slist *headerlist=NULL;
- char buf[] = "Expect:";
+ static const char buf[] = "Expect:";
curl_global_init(CURL_GLOBAL_ALL);