mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
formdata: use appropriate fopen() macros
This commit is contained in:
parent
5ea3d2ff06
commit
36b5dff030
@ -770,7 +770,7 @@ curl_off_t VmsRealFileSize(const char * name,
|
|||||||
int ret_stat;
|
int ret_stat;
|
||||||
FILE * file;
|
FILE * file;
|
||||||
|
|
||||||
file = fopen(name, "r"); /* VMS */
|
file = fopen(name, FOPEN_READTEXT); /* VMS */
|
||||||
if(file == NULL)
|
if(file == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -1421,10 +1421,10 @@ static FILE * vmsfopenread(const char *file, const char *mode) {
|
|||||||
case FAB$C_VAR:
|
case FAB$C_VAR:
|
||||||
case FAB$C_VFC:
|
case FAB$C_VFC:
|
||||||
case FAB$C_STMCR:
|
case FAB$C_STMCR:
|
||||||
return fopen(file, "r"); /* VMS */
|
return fopen(file, FOPEN_READTEXT); /* VMS */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return fopen(file, "r", "rfm=stmlf", "ctx=stm");
|
return fopen(file, FOPEN_READTEXT, "rfm=stmlf", "ctx=stm");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user