mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
tidy-up: miscellaneous
- examples: sync debug output printf masks. - INSTALL-CMAKE.md: tidy up section for some options. - curl_sha512_256: delete comment suggesting an optimization. - vtls/keylog: scope a variable. - vtls/openssl: make a source code URL a permalink. - vtls/schannel: drop redundant parentheses. - test1119.pl: robustify `$1` -> `$s`. - sync arg names in comments to match the code. - tidy up and minor fixes to comments. - fix formatting/indenting/comment/newline/include nits. - move `UNITTEST` protos next to definitions, sync their argument names. - make variables static. - add parentheses to Perl `open()` calls. - drop unnecessary double quotes in Perl. - clang-format. Closes #21000
This commit is contained in:
parent
3512b673dd
commit
e0dd6eb4a4
148 changed files with 612 additions and 684 deletions
|
|
@ -255,7 +255,7 @@ static void my_sha256_final(unsigned char *digest, void *in)
|
|||
(a)[0] = (unsigned char)((((unsigned long)(val)) >> 24) & 0xff); \
|
||||
(a)[1] = (unsigned char)((((unsigned long)(val)) >> 16) & 0xff); \
|
||||
(a)[2] = (unsigned char)((((unsigned long)(val)) >> 8) & 0xff); \
|
||||
(a)[3] = (unsigned char) (((unsigned long)(val)) & 0xff); \
|
||||
(a)[3] = (unsigned char)(((unsigned long)(val)) & 0xff); \
|
||||
} while(0)
|
||||
|
||||
#define WPA_PUT_BE64(a, val) \
|
||||
|
|
@ -486,7 +486,7 @@ CURLcode Curl_sha256it(unsigned char *output, const unsigned char *input,
|
|||
result = my_sha256_init(&ctx);
|
||||
if(!result) {
|
||||
do {
|
||||
unsigned int ilen = (unsigned int) CURLMIN(len, UINT_MAX);
|
||||
unsigned int ilen = (unsigned int)CURLMIN(len, UINT_MAX);
|
||||
my_sha256_update(&ctx, input, ilen);
|
||||
len -= ilen;
|
||||
input += ilen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue