1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

const and (un)signed fixes

This commit is contained in:
Daniel Stenberg 2001-08-14 08:39:01 +00:00
parent 83a5e39065
commit 85bb25e628

View File

@ -111,8 +111,8 @@
*/ */
static bool static bool
compareheader(char *headerline, /* line to check */ compareheader(char *headerline, /* line to check */
char *header, /* header keyword _with_ colon */ const char *header, /* header keyword _with_ colon */
char *content) /* content string to find */ const char *content) /* content string to find */
{ {
/* RFC2616, section 4.2 says: "Each header field consists of a name followed /* 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. * 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>. * <butlerm@xmission.com>.
*/ */
CURLcode static static CURLcode
Transfer(struct connectdata *c_conn) Transfer(struct connectdata *c_conn)
{ {
ssize_t nread; /* number of bytes read */ ssize_t nread; /* number of bytes read */
@ -800,7 +800,7 @@ Transfer(struct connectdata *c_conn)
urg = Curl_write(conn, conn->writesockfd, buf, nread, urg = Curl_write(conn, conn->writesockfd, buf, nread,
&bytes_written); &bytes_written);
if(nread != bytes_written) { if(nread != (int)bytes_written) {
failf(data, "Failed uploading data"); failf(data, "Failed uploading data");
return CURLE_WRITE_ERROR; return CURLE_WRITE_ERROR;
} }