diff options
author | Yang Tse <yangsita@gmail.com> | 2006-09-10 23:37:42 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-09-10 23:37:42 +0000 |
commit | c30e908034dec008990d58759dd28d3cdbef536b (patch) | |
tree | 6b1d844d5a59b4ace75f1d792a640ba698a77a54 /lib/ftp.c | |
parent | 8d24c0212efb7b0ef4de610fbadf12cdee266c0e (diff) |
Compiler warning fix
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2537,7 +2537,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn) if(ftpcode/100 == 2) /* We have enabled SSL for the data connection! */ conn->ssl[SECONDARYSOCKET].use = - data->set.ftp_ssl != CURLFTPSSL_CONTROL; + (bool)(data->set.ftp_ssl != CURLFTPSSL_CONTROL); /* FTP servers typically responds with 500 if they decide to reject our 'P' request */ else if(data->set.ftp_ssl> CURLFTPSSL_CONTROL) @@ -2768,7 +2768,7 @@ CURLcode Curl_ftp_multi_statemach(struct connectdata *conn, } else if(rc != 0) { result = ftp_statemach_act(conn); - *done = (ftpc->state == FTP_STOP); + *done = (bool)(ftpc->state == FTP_STOP); } /* if rc == 0, then select() timed out */ @@ -3955,8 +3955,8 @@ CURLcode ftp_parse_url_path(struct connectdata *conn) /* parse the URL path into separate path components */ while ((slash_pos = strchr(cur_pos, '/')) != NULL) { /* 1 or 0 to indicate absolute directory */ - bool absolute_dir = (cur_pos - data->reqdata.path > 0) && - (ftpc->dirdepth == 0); + bool absolute_dir = (bool)((cur_pos - data->reqdata.path > 0) && + (ftpc->dirdepth == 0)); /* seek out the next path component */ if (slash_pos-cur_pos) { |