summaryrefslogtreecommitdiff
path: root/tests/libtest/lib508.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-12 12:05:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-12 12:05:33 +0000
commitf8ff0f6befc92288a83b109ef3a61d82d48f3140 (patch)
treeef6e263d671bc251a80e2269de73c5621fbf3e81 /tests/libtest/lib508.c
parentbc7122f6e2c045c4dbf2ddc374ce4fd437753f62 (diff)
downloadcurl-f8ff0f6befc92288a83b109ef3a61d82d48f3140.tar.gz
minor variable type fix
Diffstat (limited to 'tests/libtest/lib508.c')
-rw-r--r--tests/libtest/lib508.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c
index 6a826b7b0..ddec600b0 100644
--- a/tests/libtest/lib508.c
+++ b/tests/libtest/lib508.c
@@ -4,7 +4,7 @@ static char data[]="this is what we post to the silly web server\n";
struct WriteThis {
char *readptr;
- int sizeleft;
+ size_t sizeleft;
};
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
@@ -43,7 +43,7 @@ int test(char *URL)
curl_easy_setopt(curl, CURLOPT_POST, TRUE);
/* Set the expected POST size */
- curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
+ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
/* we want to use our own read function */
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);