aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-09-27 01:45:22 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-09-27 01:45:22 +0000
commit16b95fc77316fdd3866f7de4ebb5d14bd136ac11 (patch)
treeb30e7469d7d0c15d766747c9405ded68894718d5 /lib/formdata.c
parent9c5cd6c4137e2c0f238b6f767fe40fdacb9b6ede (diff)
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 64414f57b..05cfd3cc8 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -950,21 +950,21 @@ int curl_formget(struct curl_httppost *form, void *arg,
for (ptr = data; ptr; ptr = ptr->next) {
if (ptr->type == FORM_FILE) {
char buffer[8192];
- size_t read;
+ size_t nread;
struct Form temp;
Curl_FormInit(&temp, ptr);
do {
- read = readfromfile(&temp, buffer, sizeof(buffer));
- if ((read == (size_t) -1) || (read != append(arg, buffer, read))) {
+ nread = readfromfile(&temp, buffer, sizeof(buffer));
+ if ((nread == (size_t) -1) || (nread != append(arg, buffer, nread))) {
if (temp.fp) {
fclose(temp.fp);
}
Curl_formclean(&data);
return -1;
}
- } while (read == sizeof(buffer));
+ } while (nread == sizeof(buffer));
} else {
if (ptr->length != append(arg, ptr->line, ptr->length)) {
Curl_formclean(&data);