From: Martin Pool Date: Thu, 24 Jan 2002 05:57:49 +0000 (+0000) Subject: Another size_t warning X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/00d943d513e9fb5863f2247f19340e0b7f476041 Another size_t warning --- diff --git a/socket.c b/socket.c index e8c31012..2194c2d9 100644 --- a/socket.c +++ b/socket.c @@ -44,7 +44,7 @@ static int establish_proxy_connection(int fd, char *host, int port) char *cp; snprintf(buffer, sizeof(buffer), "CONNECT %s:%d HTTP/1.0\r\n\r\n", host, port); - if (write(fd, buffer, strlen(buffer)) != strlen(buffer)) { + if (write(fd, buffer, strlen(buffer)) != (int) strlen(buffer)) { rprintf(FERROR, "failed to write to proxy: %s\n", strerror(errno)); return -1;