CURL_DOES_CONVERSIONS: fixes
authorGisle Vanem <gvanem@broadpark.no>
Wed, 20 Apr 2011 13:23:57 +0000 (15:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Apr 2011 13:23:57 +0000 (15:23 +0200)
Made it compile and work again after the code move.

lib/non-ascii.c
lib/non-ascii.h
lib/transfer.c

index 945178e..7e6ad37 100644 (file)
 
 #ifdef CURL_DOES_CONVERSIONS
 
+#include "non-ascii.h"
+#include "formdata.h"
+#include "sendf.h"
+#include "urldata.h"
+
+#include <curl/curl.h>
+
 #ifdef HAVE_ICONV
 #include <iconv.h>
 /* set default codesets for iconv */
 #endif /* HAVE_ICONV */
 
 /*
- * Curl_convertclone() returns a malloced copy of the source string (if
+ * Curl_convert_clone() returns a malloced copy of the source string (if
  * returning CURLE_OK), with the data converted to network format.
  */
-CURLcode Curl_convertclone(struct SessionHandle *data,
+CURLcode Curl_convert_clone(struct SessionHandle *data,
                            const char *indata,
                            size_t insize,
                            char **outbuf)
@@ -54,7 +61,7 @@ CURLcode Curl_convertclone(struct SessionHandle *data,
 
   memcpy(convbuf, indata, insize);
   result = Curl_convert_to_network(data, convbuf, insize);
-  if(result) {s
+  if(result) {
     free(convbuf);
     return result;
   }
index cccb11f..89899be 100644 (file)
@@ -26,7 +26,7 @@
 #include "urldata.h"
 
 /*
- * Curl_convertclone() returns a malloced copy of the source string (if
+ * Curl_convert_clone() returns a malloced copy of the source string (if
  * returning CURLE_OK), with the data converted to network format.
  *
  * If no conversion was needed *outbuf may be NULL.
index 08d5ed3..1684a48 100644 (file)
 #include "multiif.h"
 #include "rtsp.h"
 #include "connect.h"
+#include "non-ascii.h"
 
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>