diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-03-08 09:56:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-03-08 09:56:29 +0000 |
commit | df3297ccdd0cceb5eaf6dfd6cebfe0e44312f881 (patch) | |
tree | 4eea0b0c723a9826e22c8de85a0db3eb0c3ea7bf /usr.bin/nc/socks.c | |
parent | 2cb4357039a7adf0854c4d049c60a2b13d0941c5 (diff) |
fix format strings for size_t
ok okan@
Diffstat (limited to 'usr.bin/nc/socks.c')
-rw-r--r-- | usr.bin/nc/socks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nc/socks.c b/usr.bin/nc/socks.c index 71108d543b3..f8adda463a2 100644 --- a/usr.bin/nc/socks.c +++ b/usr.bin/nc/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"); |