Commit 8fd149eec9832a9266021447b1a545871d96c3f6

Con Kolivas 2012-09-26T16:51:08

Fix warnings.

diff --git a/util.c b/util.c
index 02c4c28..c5d0f76 100644
--- a/util.c
+++ b/util.c
@@ -801,7 +801,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
 	char *url_begin, *url_end, *port_start;
 	char *url_address, *port;
 	struct addrinfo hints, *res;
-	size_t url_len, port_len = 0;
+	int url_len, port_len = 0;
 
 	url_begin = strstr(url, "//");
 	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)
 {
-	size_t sent = 0;
+	ssize_t sent = 0;
 
 	while (len > 0 ) {
 		sent = send(sock, s + sent, len, 0);