diff options
author | Martin Willi <martin@strongswan.org> | 2008-11-11 18:37:19 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-11-11 18:37:19 +0000 |
commit | 479f295049956333253310025d3776279e932b46 (patch) | |
tree | e0d6113484a5e191c14a8649f9634cfa15087464 /src/libstrongswan/plugins/curl | |
parent | 3d2dbebd703fe29c0981f61102094ffe2a4a2101 (diff) | |
download | strongswan-479f295049956333253310025d3776279e932b46.tar.bz2 strongswan-479f295049956333253310025d3776279e932b46.tar.xz |
fixed compiler warnings issued by:
gcc 4.3
curl.h gcc type-checking
glibc with enabled FORTIFY_SOURCE checking
Diffstat (limited to 'src/libstrongswan/plugins/curl')
-rw-r--r-- | src/libstrongswan/plugins/curl/curl_fetcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/curl/curl_fetcher.c b/src/libstrongswan/plugins/curl/curl_fetcher.c index fe49717fa..eac3b07a2 100644 --- a/src/libstrongswan/plugins/curl/curl_fetcher.c +++ b/src/libstrongswan/plugins/curl/curl_fetcher.c @@ -123,7 +123,7 @@ static bool set_option(private_curl_fetcher_t *this, fetcher_option_t option, .. case FETCH_REQUEST_DATA: { chunk_t data = va_arg(args, chunk_t); - curl_easy_setopt(this->curl, CURLOPT_POSTFIELDS, data.ptr); + curl_easy_setopt(this->curl, CURLOPT_POSTFIELDS, (char*)data.ptr); curl_easy_setopt(this->curl, CURLOPT_POSTFIELDSIZE, data.len); return TRUE; } |