diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:39:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:39:01 +0000 |
commit | 85bb25e6287a378d12bba6a0baae894f2efb32c9 (patch) | |
tree | 2acb003d6762eafb7128a5924837bac06359f376 | |
parent | 83a5e390654fb1e77c7c5d7bd32ba147ff022cbd (diff) |
const and (un)signed fixes
-rw-r--r-- | lib/transfer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index dd8c19e68..9b4db1023 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -111,8 +111,8 @@ */ static bool compareheader(char *headerline, /* line to check */ - char *header, /* header keyword _with_ colon */ - char *content) /* content string to find */ + const char *header, /* header keyword _with_ colon */ + const char *content) /* content string to find */ { /* RFC2616, section 4.2 says: "Each header field consists of a name followed * by a colon (":") and the field value. Field names are case-insensitive. @@ -172,7 +172,7 @@ compareheader(char *headerline, /* line to check */ * <butlerm@xmission.com>. */ -CURLcode static +static CURLcode Transfer(struct connectdata *c_conn) { ssize_t nread; /* number of bytes read */ @@ -800,7 +800,7 @@ Transfer(struct connectdata *c_conn) urg = Curl_write(conn, conn->writesockfd, buf, nread, &bytes_written); - if(nread != bytes_written) { + if(nread != (int)bytes_written) { failf(data, "Failed uploading data"); return CURLE_WRITE_ERROR; } |