diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 11:57:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 11:57:04 +0200 |
commit | 36b5dff030d5a7d1b4c150c49409a758a4fb2094 (patch) | |
tree | caa89272bc5268a6456c0b36a72104eedbdd0dd4 /lib/formdata.c | |
parent | 5ea3d2ff066dbb78fb6cdee5e07ee5ce1672f31a (diff) | |
download | curl-36b5dff030d5a7d1b4c150c49409a758a4fb2094.tar.gz |
formdata: use appropriate fopen() macros
Diffstat (limited to 'lib/formdata.c')
-rw-r--r-- | lib/formdata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index c241e6e9b..b1bc067ca 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -770,7 +770,7 @@ curl_off_t VmsRealFileSize(const char * name, int ret_stat; FILE * file; - file = fopen(name, "r"); /* VMS */ + file = fopen(name, FOPEN_READTEXT); /* VMS */ if(file == NULL) return 0; @@ -1421,10 +1421,10 @@ 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"); /* VMS */ + return fopen(file, FOPEN_READTEXT); /* VMS */ break; default: - return fopen(file, "r", "rfm=stmlf", "ctx=stm"); + return fopen(file, FOPEN_READTEXT, "rfm=stmlf", "ctx=stm"); } } #endif |