aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-01-27 03:14:25 +0000
committerYang Tse <yangsita@gmail.com>2007-01-27 03:14:25 +0000
commitcdbbb7d9006bad8608edb794193ffa629da66a53 (patch)
tree77abd7a24f5bdef48040e9d8951bd42ebd288291
parent2bf4d9a22cb9b85ff863e46fb35e04c21332447e (diff)
Compiler warning fix
-rw-r--r--lib/multi.c2
-rw-r--r--lib/sendf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index e10f5e434..b501f296f 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -512,7 +512,7 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
}
if(easy) {
- bool premature = easy->state != CURLM_STATE_COMPLETED;
+ bool premature = (bool)(easy->state != CURLM_STATE_COMPLETED);
/* If the 'state' is not INIT or COMPLETED, we might need to do something
nice to put the easy_handle in a good known state when this returns. */
diff --git a/lib/sendf.c b/lib/sendf.c
index b66febe32..500bf66f0 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -474,7 +474,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
ssize_t nread;
size_t bytesfromsocket = 0;
char *buffertofill = NULL;
- bool pipelining = (conn->data->multi &&
+ bool pipelining = (bool)(conn->data->multi &&
Curl_multi_canPipeline(conn->data->multi));
/* Set 'num' to 0 or 1, depending on which socket that has been sent here.