mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:53:31 +03:00
tidy-up: miscellaneous
- vms/curlmsg_vms.h: delete unused/commented code. - vtls/schannel_verify: sort includes. - typecheck-gcc.h: fix indent and alignment. - lib/config-win32.h: drop idle `#undef`. - spacecheck: check for stray empty lines before after curly braces. - make literals more readable: 1048576 -> 1024 * 1024 - scope variables. - use ISO date in a comment. - drop redundant parentheses. - drop empty comments. - unfold lines. - duplicate/stray spaces in comments. - fix indent, whitespace, minor typos. Closes #20690
This commit is contained in:
parent
ac46392f44
commit
af78b199b2
89 changed files with 424 additions and 448 deletions
|
|
@ -68,7 +68,7 @@ int main(void)
|
|||
/* add a part */
|
||||
part = curl_mime_addpart(mime);
|
||||
|
||||
/* add data to the part */
|
||||
/* add data to the part */
|
||||
curl_mime_data(part, "raw contents to send", CURL_ZERO_TERMINATED);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ int main(void)
|
|||
if(curl) {
|
||||
struct progress data;
|
||||
|
||||
/* pass struct to callback */
|
||||
/* pass struct to callback */
|
||||
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &data);
|
||||
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ int main(void)
|
|||
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
/* pass struct to callback */
|
||||
/* pass struct to callback */
|
||||
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &data);
|
||||
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ option.
|
|||
Using this option multiple times makes the last set string override the
|
||||
previous ones. Set it to NULL to disable its use again.
|
||||
|
||||
This feature relies on TLS SRP which does not work with TLS 1.3.
|
||||
This feature relies on TLS-SRP which does not work with TLS 1.3.
|
||||
|
||||
# DEFAULT
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ defined in RFC 5054 and provides mutual authentication if both sides have a
|
|||
shared secret. To use TLS-SRP, you must also set the
|
||||
CURLOPT_TLSAUTH_USERNAME(3) and CURLOPT_TLSAUTH_PASSWORD(3) options.
|
||||
|
||||
TLS SRP does not work with TLS 1.3.
|
||||
TLS-SRP does not work with TLS 1.3.
|
||||
|
||||
# DEFAULT
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ option.
|
|||
Using this option multiple times makes the last set string override the
|
||||
previous ones. Set it to NULL to disable its use again.
|
||||
|
||||
This feature relies on TLS SRP which does not work with TLS 1.3.
|
||||
This feature relies on TLS-SRP which does not work with TLS 1.3.
|
||||
|
||||
# DEFAULT
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ int main(void)
|
|||
CURLcode result;
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
/* send all data to this function */
|
||||
/* send all data to this function */
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cb);
|
||||
|
||||
/* we pass our 'chunk' struct to the callback function */
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ int main(void)
|
|||
if(curl) {
|
||||
struct progress data;
|
||||
|
||||
/* pass struct to callback */
|
||||
/* pass struct to callback */
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &data);
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_cb);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ int main(void)
|
|||
if(curl) {
|
||||
struct progress data;
|
||||
|
||||
/* pass struct to callback */
|
||||
/* pass struct to callback */
|
||||
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &data);
|
||||
|
||||
/* enable progress callback getting called */
|
||||
|
|
|
|||
|
|
@ -100,6 +100,5 @@ EOS
|
|||
EOS
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue