1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Fix warnings.

This commit is contained in:
Con Kolivas 2012-09-26 16:51:08 +10:00
parent e3f1b02e9a
commit 8fd149eec9

4
util.c
View File

@ -801,7 +801,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
char *url_begin, *url_end, *port_start; char *url_begin, *url_end, *port_start;
char *url_address, *port; char *url_address, *port;
struct addrinfo hints, *res; struct addrinfo hints, *res;
size_t url_len, port_len = 0; int url_len, port_len = 0;
url_begin = strstr(url, "//"); url_begin = strstr(url, "//");
if (!url_begin) if (!url_begin)
@ -848,7 +848,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
static bool sock_send(int sock, char *s, ssize_t len) static bool sock_send(int sock, char *s, ssize_t len)
{ {
size_t sent = 0; ssize_t sent = 0;
while (len > 0 ) { while (len > 0 ) {
sent = send(sock, s + sent, len, 0); sent = send(sock, s + sent, len, 0);