aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-26 20:19:45 +0100
committerYang Tse <yangsita@gmail.com>2010-11-26 20:19:45 +0100
commit23245ca83a3b6febe234f7a6aa600c015d7f62d8 (patch)
treed2cc0d146b49e2b566ed6241c24b46f89ca1f579
parent3590874999230e856fe6ab9114b3f4455d984721 (diff)
ftp: fix 'bool' data type implementation dependant usage
-rw-r--r--lib/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index dc3ab373c..5c0be38f5 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3978,9 +3978,9 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
else {
/* 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 = (bool)((cur_pos - data->state.path > 0) &&
- (ftpc->dirdepth == 0));
+ /* 1 or 0 pointer offset to indicate absolute directory */
+ ssize_t absolute_dir = ((cur_pos - data->state.path > 0) &&
+ (ftpc->dirdepth == 0))?1:0;
/* seek out the next path component */
if(slash_pos-cur_pos) {