mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:43:37 +03:00
tidy-up: minor code fixes and improvements
- schannel: drop redundant parentheses. - os400sys: drop redundant includes. Follow-up toebc5212dac#22374 - pytest: replace `()` with `[]` to match rest of tests. - libtests: constify some local pointers. - libtests: drop redundant `(long)` casts. - lib650: use `CURL_CSTRLEN()`. Follow-up to59dc2bbe07#22424 Closes #22444
This commit is contained in:
parent
c4013cdb85
commit
b84838073c
11 changed files with 11 additions and 13 deletions
|
|
@ -921,7 +921,7 @@ static CURLcode schannel_connect_step1(struct Curl_cfilter *cf,
|
|||
|
||||
/* The first four bytes is an unsigned int indicating number
|
||||
of bytes of data in the rest of the buffer. */
|
||||
extension_len = (unsigned int *)(void *)(&alpn_buffer[cur]);
|
||||
extension_len = (unsigned int *)(void *)&alpn_buffer[cur];
|
||||
cur += (int)sizeof(unsigned int);
|
||||
|
||||
/* The next four bytes are an indicator that this buffer contains
|
||||
|
|
@ -932,7 +932,7 @@ static CURLcode schannel_connect_step1(struct Curl_cfilter *cf,
|
|||
|
||||
/* The next two bytes is an unsigned short indicating the number
|
||||
of bytes used to list the preferred protocols. */
|
||||
list_len = (unsigned short *)(void *)(&alpn_buffer[cur]);
|
||||
list_len = (unsigned short *)(void *)&alpn_buffer[cur];
|
||||
cur += (int)sizeof(unsigned short);
|
||||
|
||||
list_start_index = cur;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue