diff options
author | delphij <delphij@FreeBSD.org> | 2012-10-22 18:56:31 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-10-22 18:56:31 +0000 |
commit | 79f289a888cc90ade3ab05d0211600ba13c0eab4 (patch) | |
tree | ee4d0ac497cf034719d5d70d7afef7125393f925 /contrib/netcat/socks.c | |
parent | 708d8e446e991358da23bb52ec5320440221f12f (diff) | |
download | FreeBSD-src-79f289a888cc90ade3ab05d0211600ba13c0eab4.zip FreeBSD-src-79f289a888cc90ade3ab05d0211600ba13c0eab4.tar.gz |
MFV: netcat from OpenBSD 5.2.
MFC after: 1 month
Diffstat (limited to 'contrib/netcat/socks.c')
-rw-r--r-- | contrib/netcat/socks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/netcat/socks.c b/contrib/netcat/socks.c index cb31a3c..f8adda4 100644 --- a/contrib/netcat/socks.c +++ b/contrib/netcat/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 (%zd/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 (%zd/18)", cnt); + err(1, "read failed (%zu/18)", cnt); break; default: errx(1, "connection failed, unsupported address type"); |