1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Cast -1 to (char) to cope with different default char types on ARM.

This commit is contained in:
Con Kolivas 2013-09-14 10:13:06 +10:00
parent 891c279e3b
commit 566a80f05b

4
util.c
View File

@ -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;