mirror of
https://github.com/curl/curl.git
synced 2026-06-12 16:45:39 +03:00
examples
This commit is contained in:
parent
448874f680
commit
6ea0135213
9 changed files with 13 additions and 13 deletions
|
|
@ -72,8 +72,8 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
|
|||
int i;
|
||||
STACK_OF(X509_INFO) *inf;
|
||||
|
||||
(void)curl; /* avoid warnings */
|
||||
(void)pointer; /* avoid warnings */
|
||||
(void)curl;
|
||||
(void)pointer;
|
||||
|
||||
if(!cts || !cbio) {
|
||||
return rv;
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||
{
|
||||
struct data *config = (struct data *)userp;
|
||||
const char *text;
|
||||
(void)handle; /* prevent compiler warning */
|
||||
(void)handle;
|
||||
|
||||
switch(type) {
|
||||
case CURLINFO_TEXT:
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||
const char *text;
|
||||
struct transfer *t = (struct transfer *)userp;
|
||||
unsigned int num = t->num;
|
||||
(void)handle; /* prevent compiler warning */
|
||||
(void)handle;
|
||||
|
||||
switch(type) {
|
||||
case CURLINFO_TEXT:
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ static int server_push_callback(CURL *parent,
|
|||
{
|
||||
char *headp;
|
||||
int *transfers = (int *)userp;
|
||||
(void)parent; /* we have no use for this */
|
||||
(void)num_headers; /* unused */
|
||||
(void)parent;
|
||||
(void)num_headers;
|
||||
|
||||
if(pushindex == MAX_FILES)
|
||||
/* cannot fit anymore */
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||
void *userp)
|
||||
{
|
||||
const char *text;
|
||||
(void)handle; /* prevent compiler warning */
|
||||
(void)handle;
|
||||
(void)userp;
|
||||
switch(type) {
|
||||
case CURLINFO_TEXT:
|
||||
|
|
@ -171,7 +171,7 @@ static int server_push_callback(CURL *parent,
|
|||
FILE *out;
|
||||
static unsigned int count = 0;
|
||||
|
||||
(void)parent; /* we have no use for this */
|
||||
(void)parent;
|
||||
|
||||
curl_msnprintf(filename, 128, "push%u", count++);
|
||||
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||
struct timeval tv;
|
||||
time_t secs;
|
||||
struct tm *now;
|
||||
(void)handle; /* prevent compiler warning */
|
||||
(void)handle;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
if(!known_offset) {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||
const char *text;
|
||||
|
||||
(void)userp;
|
||||
(void)handle; /* prevent compiler warning */
|
||||
(void)handle;
|
||||
|
||||
switch(type) {
|
||||
case CURLINFO_TEXT:
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
pthread_t tid[NUMT];
|
||||
int i;
|
||||
(void)argc; /* we do not use any arguments in this example */
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
/* Must initialize libcurl before any threads are started */
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
|
|||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"
|
||||
"-----END RSA PRIVATE KEY-----\n";
|
||||
|
||||
(void)curl; /* avoid warnings */
|
||||
(void)pointer; /* avoid warnings */
|
||||
(void)curl;
|
||||
(void)pointer;
|
||||
|
||||
/* get a BIO */
|
||||
bio = BIO_new_mem_buf((char *)mypem, -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue