aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarty Kuhrt <marty@kuhrt.net>2005-12-30 00:07:25 +0000
committerMarty Kuhrt <marty@kuhrt.net>2005-12-30 00:07:25 +0000
commitb11dec5dd5a4e727be964448b9c5d14cd0ace974 (patch)
treec17095e140698a26b8eae43cc431cab594566b7a /lib
parent86becc75919914d85a25ddee1c0f860b3cab1223 (diff)
putting back into dist
Diffstat (limited to 'lib')
-rw-r--r--lib/file.c6
-rw-r--r--lib/parsedate.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/file.c b/lib/file.c
index dbfe81cfa..8926105e9 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -230,11 +230,11 @@ static CURLcode file_upload(struct connectdata *conn)
if(res)
break;
- nread = (size_t)readcount;
-
- if (nread <= 0)
+ if (readcount <= 0)
break;
+ nread = (size_t)readcount;
+
/* write the data to the target */
nwrite = fwrite(buf, 1, nread, fp);
if(nwrite != nread) {
diff --git a/lib/parsedate.c b/lib/parsedate.c
index 52684825f..864231b0e 100644
--- a/lib/parsedate.c
+++ b/lib/parsedate.c
@@ -391,7 +391,7 @@ static time_t Curl_parsedate(const char *date)
t = mktime(&tm);
/* time zone adjust */
- if(-1 != t) {
+ if(-1 != (int)t) {
struct tm *gmt;
long delta;
time_t t2;