From 8fd149eec9832a9266021447b1a545871d96c3f6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 26 Sep 2012 16:51:08 +1000 Subject: [PATCH] Fix warnings. --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 02c4c28c..c5d0f765 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);