diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-11 15:03:17 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-11 15:03:17 +0100 |
commit | f4b60e7f140d72a052a22a05bc47a0ffdc00725c (patch) | |
tree | 5ed45ad2b7b52fce5360ff613494b362b5966181 | |
parent | 85b77209ae10d6d0fc90f93a47b06440aa184ede (diff) |
examples/simplessl.c: fix compiler warning
-rw-r--r-- | docs/examples/simplessl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c index 0765e1224..74c58461a 100644 --- a/docs/examples/simplessl.c +++ b/docs/examples/simplessl.c @@ -43,6 +43,7 @@ int main(void) { + int i; CURL *curl; CURLcode res; 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_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 */ { @@ -125,7 +126,7 @@ int main(void) fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); - break; /* we are done... */ + /* we are done... */ } /* always cleanup */ curl_easy_cleanup(curl); |