rename variable in docs to avoid exclusion

This commit is contained in:
Viktor Szakats 2025-07-12 11:00:42 +02:00
parent 2ebda6fa20
commit 5f5139e5ac
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 11 additions and 11 deletions

View file

@ -41,7 +41,7 @@ static size_t writefunction(void *ptr, size_t size, size_t nmemb, void *stream)
return nmemb * size;
}
static CURLcode sslctx_function(CURL *curl, void *sslctx, void *parm)
static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
{
CURLcode rv = CURLE_ABORTED_BY_CALLBACK;
@ -93,8 +93,9 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *parm)
X509_STORE *cts = SSL_CTX_get_cert_store((SSL_CTX *)sslctx);
int i;
STACK_OF(X509_INFO) *inf;
(void)curl;
(void)parm;
(void)curl; /* avoid warnings */
(void)pointer; /* avoid warnings */
if(!cts || !cbio) {
return rv;

View file

@ -51,7 +51,7 @@ static size_t writefunction(void *ptr, size_t size, size_t nmemb, void *stream)
return nmemb * size;
}
static CURLcode sslctx_function(CURL *curl, void *sslctx, void *parm)
static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
{
X509 *cert = NULL;
BIO *bio = NULL;
@ -124,7 +124,7 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *parm)
"-----END RSA PRIVATE KEY-----\n";
(void)curl; /* avoid warnings */
(void)parm; /* avoid warnings */
(void)pointer; /* avoid warnings */
/* get a BIO */
bio = BIO_new_mem_buf((char *)mypem, -1);