]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Another size_t warning
authorMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 05:57:49 +0000 (05:57 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 05:57:49 +0000 (05:57 +0000)
socket.c

index e8c310125bce4e865bb7c7fc7ea1a0bae5213bcb..2194c2d9d9e027dfde2c4f84e53b545a409d96c4 100644 (file)
--- 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;