aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-03 13:11:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-03 13:11:28 +0000
commit88e226c686d97a84ea7cbce34ce5bcba0f5d58ea (patch)
tree9ff8c3e88bdf120ac366f51d059b0329233fe457
parent9116dd41bd2a48946d424b1f25e3783d1d2b5cec (diff)
some more size_t usage, and two added typecasts when converting from size_t
to long (MIPSpro warnings)
-rw-r--r--lib/formdata.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 98838dd5c..ccb73fad0 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -416,9 +416,9 @@ AddHttpPost(char * name, size_t namelength,
post->name = name;
post->namelength = (long)(name?(namelength?namelength:strlen(name)):0);
post->contents = value;
- post->contentslength = contentslength;
+ post->contentslength = (long)contentslength;
post->buffer = buffer;
- post->bufferlength = bufferlength;
+ post->bufferlength = (long)bufferlength;
post->contenttype = contenttype;
post->contentheader = contentHeader;
post->showfilename = showfilename;
@@ -987,9 +987,9 @@ CURLFORMcode curl_formadd(struct curl_httppost **httppost,
return result;
}
-static int AddFormData(struct FormData **formp,
- const void *line,
- size_t length)
+static size_t AddFormData(struct FormData **formp,
+ const void *line,
+ size_t length)
{
struct FormData *newform = (struct FormData *)
malloc(sizeof(struct FormData));
@@ -1015,7 +1015,7 @@ static int AddFormData(struct FormData **formp,
}
-static int AddFormDataf(struct FormData **formp,
+static size_t AddFormDataf(struct FormData **formp,
const char *fmt, ...)
{
char s[4096];
@@ -1107,7 +1107,7 @@ CURLcode Curl_getFormData(struct FormData **finalform,
struct curl_httppost *file;
CURLcode result = CURLE_OK;
- int size =0;
+ size_t size =0;
char *boundary;
char *fileboundary=NULL;
struct curl_slist* curList;