summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/netcat.c
diff options
context:
space:
mode:
authorjmc <>2016-11-05 16:03:09 +0000
committerjmc <>2016-11-05 16:03:09 +0000
commitb03b65ec03c426c16dcb62ca906cd0bc7a3aef8c (patch)
tree4d82c3f462e5e3fcee71bc8fc08fcaf4397a6bf7 /src/usr.bin/nc/netcat.c
parent6dd556f61c141a00f8cc61c8b28e4ebf5f4ba8c0 (diff)
downloadopenbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.tar.gz
openbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.tar.bz2
openbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.zip
zap trailing whitespace, and add -o to usage() and help (-h);
Diffstat (limited to '')
-rw-r--r--src/usr.bin/nc/netcat.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index 4a841fb96d..7573314615 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.168 2016/11/05 15:13:26 beck Exp $ */ 1/* $OpenBSD: netcat.c,v 1.169 2016/11/05 16:03:09 jmc Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * Copyright (c) 2015 Bob Beck. All rights reserved. 4 * Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -1640,6 +1640,7 @@ help(void)
1640 \t-N Shutdown the network socket after EOF on stdin\n\ 1640 \t-N Shutdown the network socket after EOF on stdin\n\
1641 \t-n Suppress name/port resolutions\n\ 1641 \t-n Suppress name/port resolutions\n\
1642 \t-O length TCP send buffer length\n\ 1642 \t-O length TCP send buffer length\n\
1643 \t-o staplefile Staple file\n\
1643 \t-P proxyuser\tUsername for proxy authentication\n\ 1644 \t-P proxyuser\tUsername for proxy authentication\n\
1644 \t-p port\t Specify local port for remote connects\n\ 1645 \t-p port\t Specify local port for remote connects\n\
1645 \t-R CAfile CA bundle\n\ 1646 \t-R CAfile CA bundle\n\
@@ -1667,8 +1668,10 @@ usage(int ret)
1667 "usage: nc [-46cDdFhklNnrStUuvz] [-C certfile] [-e name] " 1668 "usage: nc [-46cDdFhklNnrStUuvz] [-C certfile] [-e name] "
1668 "[-H hash] [-I length]\n" 1669 "[-H hash] [-I length]\n"
1669 "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n" 1670 "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n"
1670 "\t [-P proxy_username] [-p source_port] [-R CAfile] [-s source]\n" 1671 "\t [-o staplefile] [-P proxy_username] [-p source_port] "
1671 "\t [-T keyword] [-V rtable] [-w timeout] [-X proxy_protocol]\n" 1672 "[-R CAfile]\n"
1673 "\t [-s source] [-T keyword] [-V rtable] [-w timeout] "
1674 "[-X proxy_protocol]\n"
1672 "\t [-x proxy_address[:port]] [destination] [port]\n"); 1675 "\t [-x proxy_address[:port]] [destination] [port]\n");
1673 if (ret) 1676 if (ret)
1674 exit(1); 1677 exit(1);