mirror of
https://github.com/curl/curl.git
synced 2026-07-24 11:17:22 +03:00
Curl_FormFree renamed to Curl_formclean, as it turns out VMS for example
requires all global symbols to be *case insentively* unique! curl_formfree is a global function we shouldn't touch.
This commit is contained in:
parent
7950a95401
commit
2cf45f68b0
3 changed files with 8 additions and 6 deletions
|
|
@ -367,8 +367,8 @@ char *Curl_FormBoundary(void)
|
|||
return retstring;
|
||||
}
|
||||
|
||||
/* Used from http.c */
|
||||
void Curl_FormFree(struct FormData *form)
|
||||
/* Used from http.c, this cleans a built FormData linked list */
|
||||
void Curl_formclean(struct FormData *form)
|
||||
{
|
||||
struct FormData *next;
|
||||
|
||||
|
|
@ -501,7 +501,9 @@ struct FormData *Curl_getFormData(struct HttpPost *post,
|
|||
|
||||
fileread = strequal("-", file->contents)?stdin:
|
||||
/* binary read for win32 crap */
|
||||
fopen(file->contents, "rb");
|
||||
/*VMS??*/ fopen(file->contents, "rb"); /* ONLY ALLOWS FOR STREAM FILES ON VMS */
|
||||
/*VMS?? Stream files are OK, as are FIXED & VAR files WITHOUT implied CC */
|
||||
/*VMS?? For implied CC, every record needs to have a \n appended & 1 added to SIZE */
|
||||
if(fileread) {
|
||||
while((nread = fread(buffer, 1, 1024, fileread))) {
|
||||
size += AddFormData(&form,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue