summaryrefslogtreecommitdiff
path: root/docs/examples/cacertinmem.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-16 09:24:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-16 09:24:16 +0100
commit1451f4d2e18ec0ca55c1d3c4401a9c83d45c00f3 (patch)
tree72444910282d0d127fbeaa7ad15e5d1e6ff206cf /docs/examples/cacertinmem.c
parent4dc710b198c8926edc3c8a6a70cd1eba9a092b96 (diff)
downloadcurl-1451f4d2e18ec0ca55c1d3c4401a9c83d45c00f3.tar.gz
examples: remove superfluous asterisk uses
... for function pointers. Breaks in ancient compilers.
Diffstat (limited to 'docs/examples/cacertinmem.c')
-rw-r--r--docs/examples/cacertinmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/cacertinmem.c b/docs/examples/cacertinmem.c
index dd9bb0677..880b7b1fd 100644
--- a/docs/examples/cacertinmem.c
+++ b/docs/examples/cacertinmem.c
@@ -129,9 +129,9 @@ int main(void)
curl_easy_setopt(ch, CURLOPT_HEADER, 0L);
curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L);
- curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, *writefunction);
+ curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction);
curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout);
- curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, *writefunction);
+ curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, writefunction);
curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr);
curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM");
curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L);
@@ -168,7 +168,7 @@ int main(void)
* load the certificate by installing a function doing the necessary
* "modifications" to the SSL CONTEXT just before link init
*/
- curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, *sslctx_function);
+ curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, sslctx_function);
rv = curl_easy_perform(ch);
if(rv == CURLE_OK)
printf("*** transfer succeeded ***\n");