aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-23 11:00:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-23 11:00:47 +0000
commit2a0a3053006632786b73f2e8ae6239e119b8ede9 (patch)
treef6ee6b3d6759cda7de42f6c60e6ed6005323f554
parent70e2aadc18fce9f6e3b9c06612c8314bf4f710b1 (diff)
only a minor comment/format change
-rw-r--r--lib/formdata.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 57ad283af..3e3318446 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -1244,11 +1244,14 @@ CURLcode Curl_getFormData(struct FormData **finalform,
char buffer[1024];
size_t nread;
- fileread = strequal("-", file->contents)?stdin:
- /* binary read for win32 crap */
- /*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 */
+ fileread = strequal("-", file->contents)?
+ stdin:fopen(file->contents, "rb"); /* binary read for win32 */
+ /*
+ * VMS: This only allows for stream files on VMS. Stream files are
+ * OK, as are FIXED & VAR files WITHOUT implied CC 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, buffer, nread);
@@ -1257,10 +1260,6 @@ CURLcode Curl_getFormData(struct FormData **finalform,
fclose(fileread);
}
else {
-#if 0
- /* File wasn't found, add a nothing field! */
- size += AddFormData(&form, "", 0);
-#endif
Curl_formclean(firstform);
free(boundary);
*finalform = NULL;