summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-08-11 20:43:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-08-11 20:43:12 +0000
commit171eef68c3d0e683acc0f422978e28d1d01cf41f (patch)
tree916fb07e1b43f100e5aa44d2ac420100ec505af1
parent33368ebd021d75f14070cae3afb1d6f706393528 (diff)
downloadgnurl-171eef68c3d0e683acc0f422978e28d1d01cf41f.tar.gz
gnurl-171eef68c3d0e683acc0f422978e28d1d01cf41f.tar.bz2
gnurl-171eef68c3d0e683acc0f422978e28d1d01cf41f.zip
- Benbuck Nason posted the bug report #2835196
(http://curl.haxx.se/bug/view.cgi?id=2835196), fixing a few compiler warnings when mixing ints and bools.
-rw-r--r--CHANGES5
-rw-r--r--lib/ftp.c4
-rw-r--r--lib/url.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 4ade70794..080f0dbe3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,11 @@
Changelog
+Daniel Stenberg (11 Aug 2009)
+- Benbuck Nason posted the bug report #2835196
+ (http://curl.haxx.se/bug/view.cgi?id=2835196), fixing a few compiler
+ warnings when mixing ints and bools.
+
Daniel Fandrich (10 Aug 2009)
- Fixed a memory leak in the FTP code and an off-by-one heap buffer overflow.
diff --git a/lib/ftp.c b/lib/ftp.c
index 765ac841c..b68cc027c 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3529,7 +3529,7 @@ static CURLcode ftp_nextconnect(struct connectdata *conn)
/* But only if a body transfer was requested. */
if(ftp->transfer == FTPTRANSFER_BODY) {
- result = ftp_nb_type(conn, 1, FTP_LIST_TYPE);
+ result = ftp_nb_type(conn, TRUE, FTP_LIST_TYPE);
if(result)
return result;
}
@@ -4093,7 +4093,7 @@ CURLcode ftp_regular_transfer(struct connectdata *conn,
bool *dophase_done)
{
CURLcode result=CURLE_OK;
- bool connected=0;
+ bool connected=FALSE;
struct SessionHandle *data = conn->data;
struct ftp_conn *ftpc = &conn->proto.ftpc;
data->req.size = -1; /* make sure this is unknown at this point */
diff --git a/lib/url.c b/lib/url.c
index 96db7e481..ae2917548 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3862,7 +3862,7 @@ static CURLcode parse_url_userpass(struct SessionHandle *data,
if(data->set.use_netrc != CURL_NETRC_REQUIRED) {
/* We could use the one in the URL */
- conn->bits.user_passwd = 1; /* enable user+password */
+ conn->bits.user_passwd = TRUE; /* enable user+password */
if(*userpass != ':') {
/* the name is given, get user+password */
@@ -4027,7 +4027,7 @@ static void override_userpass(struct SessionHandle *data,
different host or similar. */
conn->bits.netrc = TRUE;
- conn->bits.user_passwd = 1; /* enable user+password */
+ conn->bits.user_passwd = TRUE; /* enable user+password */
}
}
}