examples/simplessl.c: fix compiler warning
This commit is contained in:
parent
85b77209ae
commit
f4b60e7f14
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
FILE *headerfile;
|
FILE *headerfile;
|
||||||
@ -76,7 +77,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
|
||||||
|
|
||||||
for(;;) /* do some ugly short cut... */
|
for(i = 0; i < 1; i++) /* single-iteration loop, just to break out from */
|
||||||
{
|
{
|
||||||
if (pEngine) /* use crypto engine */
|
if (pEngine) /* use crypto engine */
|
||||||
{
|
{
|
||||||
@ -125,7 +126,7 @@ int main(void)
|
|||||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||||
curl_easy_strerror(res));
|
curl_easy_strerror(res));
|
||||||
|
|
||||||
break; /* we are done... */
|
/* we are done... */
|
||||||
}
|
}
|
||||||
/* always cleanup */
|
/* always cleanup */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user