aboutsummaryrefslogtreecommitdiffstats
path: root/socks.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-10-22 18:47:59 +0000
committerXin LI <delphij@FreeBSD.org>2012-10-22 18:47:59 +0000
commit0537a01239dc2195a77a08a0d844623768079f97 (patch)
treea300cb5e2a527f74fb59e7ea994c9164dcf8c5cb /socks.c
parent4e1e6f264167802adb39e58abe959576347d3321 (diff)
downloadsrc-0537a01239dc2195a77a08a0d844623768079f97.tar.gz
src-0537a01239dc2195a77a08a0d844623768079f97.zip
Vendor import from OpenBSD 5.1.vendor/netcat/5.2
Notes
Notes: svn path=/vendor/netcat/dist/; revision=241904 svn path=/vendor/netcat/5.2/; revision=241905; tag=vendor/netcat/5.2
Diffstat (limited to 'socks.c')
-rw-r--r--socks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/socks.c b/socks.c
index 71108d543b38..f8adda463a22 100644
--- a/socks.c
+++ b/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.19 2011/02/12 15:54:18 okan Exp $ */
+/* $OpenBSD: socks.c,v 1.20 2012/03/08 09:56:28 espie Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -231,12 +231,12 @@ socks_connect(const char *host, const char *port,
case SOCKS_IPV4:
cnt = atomicio(read, proxyfd, buf + 4, 6);
if (cnt != 6)
- err(1, "read failed (%d/6)", cnt);
+ err(1, "read failed (%zu/6)", cnt);
break;
case SOCKS_IPV6:
cnt = atomicio(read, proxyfd, buf + 4, 18);
if (cnt != 18)
- err(1, "read failed (%d/18)", cnt);
+ err(1, "read failed (%zu/18)", cnt);
break;
default:
errx(1, "connection failed, unsupported address type");