mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:43:52 +03:00
checksrc: detect fopen() for text without the FOPEN_* macros
Follow-up to e8423f9ce1 with discussionis in
https://github.com/bagder/curl/pull/258
This check scans for fopen() with a mode string without 'b' present, as
it may indicate that an FOPEN_* define should rather be used.
This commit is contained in:
parent
3bbcb4b036
commit
33ee411848
5 changed files with 17 additions and 4 deletions
|
|
@ -756,7 +756,7 @@ curl_off_t VmsRealFileSize(const char * name,
|
|||
int ret_stat;
|
||||
FILE * file;
|
||||
|
||||
file = fopen(name, "r");
|
||||
file = fopen(name, "r"); /* VMS */
|
||||
if(file == NULL)
|
||||
return 0;
|
||||
|
||||
|
|
@ -1385,7 +1385,7 @@ static FILE * vmsfopenread(const char *file, const char *mode) {
|
|||
case FAB$C_VAR:
|
||||
case FAB$C_VFC:
|
||||
case FAB$C_STMCR:
|
||||
return fopen(file, "r");
|
||||
return fopen(file, "r"); /* VMS */
|
||||
break;
|
||||
default:
|
||||
return fopen(file, "r", "rfm=stmlf", "ctx=stm");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue