mirror of
https://github.com/curl/curl.git
synced 2026-07-29 00:53:07 +03:00
misc: fix code quality findings
- httpsrr: drop redundant checks. Follow-up to809dda3a37#21354 - httpsrr.h: drop obsolete comment. Follow-up to2b3dfb4ad4#21175 - ws: drop redundant check in `curl_ws_start_frame()`. Follow-up to37cecfc7b9#17683 - ws: fix typo in comment. - tool_operate: fix VMS build. (broken since 2019-07-20, v7.66.0) Follow-up tob889408500#3804 Pointed out by Copilot Code Quality Closes #21393
This commit is contained in:
parent
2e3607034d
commit
8eb3cb75a3
4 changed files with 8 additions and 14 deletions
|
|
@ -269,7 +269,7 @@ static CURLcode pre_transfer(struct per_transfer *per)
|
|||
/* Calculate the real upload size for VMS */
|
||||
per->infd = -1;
|
||||
if(curlx_stat(per->uploadfile, &fileinfo) == 0) {
|
||||
fileinfo.st_size = VmsSpecialSize(uploadfile, &fileinfo);
|
||||
fileinfo.st_size = VmsSpecialSize(per->uploadfile, &fileinfo);
|
||||
switch(fileinfo.st_fab_rfm) {
|
||||
case FAB$C_VAR:
|
||||
case FAB$C_VFC:
|
||||
|
|
@ -1129,7 +1129,7 @@ static CURLcode setup_outfile(struct OperationConfig *config,
|
|||
#ifdef __VMS
|
||||
/* open file for output, forcing VMS output format into stream
|
||||
mode which is needed for stat() call above to always work. */
|
||||
FILE *file = curlx_fopen(outfile, "ab",
|
||||
FILE *file = curlx_fopen(per->outfile, "ab",
|
||||
"ctx=stm", "rfm=stmlf", "rat=cr", "mrs=0");
|
||||
#else
|
||||
/* open file for output: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue