mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:03:47 +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
|
|
@ -322,7 +322,7 @@ static CURLcode empty_multi_test(void)
|
|||
|
||||
multi_init(multi);
|
||||
|
||||
/* calling curl_multi_waitfds() on an empty multi handle. */
|
||||
/* calling curl_multi_waitfds() on an empty multi handle. */
|
||||
mresult = curl_multi_waitfds(multi, ufds, 10, &fd_count);
|
||||
|
||||
if(mresult != CURLM_OK) {
|
||||
|
|
|
|||
|
|
@ -330,15 +330,15 @@ static bool bad_long(CURLcode res, int check)
|
|||
static bool bad_neg(int check)
|
||||
{
|
||||
switch(check) {
|
||||
case CURLOPT_DNS_CACHE_TIMEOUT:
|
||||
case CURLOPT_INFILESIZE:
|
||||
case CURLOPT_INFILESIZE_LARGE:
|
||||
case CURLOPT_MAXREDIRS:
|
||||
case CURLOPT_POSTFIELDSIZE:
|
||||
case CURLOPT_POSTFIELDSIZE_LARGE:
|
||||
case CURLOPT_RESUME_FROM:
|
||||
case CURLOPT_RESUME_FROM_LARGE:
|
||||
return TRUE;
|
||||
case CURLOPT_DNS_CACHE_TIMEOUT:
|
||||
case CURLOPT_INFILESIZE:
|
||||
case CURLOPT_INFILESIZE_LARGE:
|
||||
case CURLOPT_MAXREDIRS:
|
||||
case CURLOPT_POSTFIELDSIZE:
|
||||
case CURLOPT_POSTFIELDSIZE_LARGE:
|
||||
case CURLOPT_RESUME_FROM:
|
||||
case CURLOPT_RESUME_FROM_LARGE:
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ elsif($ARGV[0] eq "postprocess") {
|
|||
}
|
||||
close(IN);
|
||||
|
||||
@canondir = sort {substr($a,57) cmp substr($b,57)} @canondir;
|
||||
@canondir = sort {substr($a, 57) cmp substr($b, 57)} @canondir;
|
||||
my $newfile = $logfile . ".new";
|
||||
open(OUT, ">$newfile") || die "$!";
|
||||
print OUT join('', @canondir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue