From 566a80f05be829ad57c1775ae13503ab04c7aa9a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Sep 2013 10:13:06 +1000 Subject: [PATCH] Cast -1 to (char) to cope with different default char types on ARM. --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 02ea133c..2df54391 100644 --- a/util.c +++ b/util.c @@ -1768,7 +1768,7 @@ static bool http_negotiate(struct pool *pool, int sockd, bool http0) /* Ignore unwanted headers till we get desired response */ for (i = 0; i < 4; i++) { buf[i] = recv_byte(sockd); - if (buf[i] == -1) { + if (buf[i] == (char)-1) { applog(LOG_WARNING, "Couldn't read HTTP byte from proxy %s:%s", pool->sockaddr_proxy_url, pool->sockaddr_proxy_port); return false; @@ -1778,7 +1778,7 @@ static bool http_negotiate(struct pool *pool, int sockd, bool http0) for (i = 0; i < 3; i++) buf[i] = buf[i + 1]; buf[3] = recv_byte(sockd); - if (buf[3] == -1) { + if (buf[3] == (char)-1) { applog(LOG_WARNING, "Couldn't read HTTP byte from proxy %s:%s", pool->sockaddr_proxy_url, pool->sockaddr_proxy_port); return false;