aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-13 07:57:31 +0000
committerYang Tse <yangsita@gmail.com>2007-04-13 07:57:31 +0000
commit038fe54e2133119e7836d79ea4aaa5ca705159fc (patch)
tree92e7fd1b3f072e98cb7f4a56df475b8d3cf37120 /lib
parent4b5a65455e0c88660540755541e88d8307259834 (diff)
fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/base64.c2
-rw-r--r--lib/inet_pton.c2
-rw-r--r--lib/multi.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 5669e4c1d..7b2a9c6a7 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -59,7 +59,7 @@ static void decodeQuantum(unsigned char *dest, const char *src)
char *found;
for(i = 0; i < 4; i++) {
- if((found = strchr(table64, src[i])))
+ if((found = strchr(table64, src[i])) != 0)
x = (x << 6) + (unsigned int)(found - table64);
else if(src[i] == '=')
x = (x << 6);
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index fb7feef28..163df3ce3 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -116,7 +116,7 @@ inet_pton4(const char *src, unsigned char *dst)
if (val > 255)
return (0);
- *tp = val;
+ *tp = (unsigned char)val;
if (! saw_digit) {
if (++octets > 4)
return (0);
diff --git a/lib/multi.c b/lib/multi.c
index 3245b520d..530357392 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -796,7 +796,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
struct Curl_message *msg = NULL;
bool connected;
bool async;
- bool protocol_connect;
+ bool protocol_connect = FALSE;
bool dophase_done;
bool done;
CURLMcode result = CURLM_OK;