summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-24 05:57:49 +0000
committerMartin Pool <mbp@samba.org>2002-01-24 05:57:49 +0000
commit00d943d513e9fb5863f2247f19340e0b7f476041 (patch)
tree21e2a17fdbcb52afc6b52b3d9b3bab9e07d416a7 /socket.c
parent71c780da06b839598694f0bc8e2c3ccae4b29479 (diff)
downloadrsync-00d943d513e9fb5863f2247f19340e0b7f476041.tar.gz
Another size_t warning
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
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;