]> granicus.if.org Git - curl/commitdiff
only a minor comment/format change
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Apr 2004 11:00:47 +0000 (11:00 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Apr 2004 11:00:47 +0000 (11:00 +0000)
lib/formdata.c

index 57ad283af81c792f79e153bb39b0f6c86798a234..3e33184467b8b5e39b33608b8a0915e294fde071 100644 (file)
@@ -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;