summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet/main.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-07-05 13:21:20 +0000
committerru <ru@FreeBSD.org>2001-07-05 13:21:20 +0000
commit9fe354114fd43da7f399b42256f4ec409c7cd3a1 (patch)
tree0942936bf9da6b1feb2d092339de711bc0ba1a14 /usr.bin/telnet/main.c
parent9e794ab0dc795bfc6359acbc74ff796eaca8aa42 (diff)
downloadFreeBSD-src-9fe354114fd43da7f399b42256f4ec409c7cd3a1.zip
FreeBSD-src-9fe354114fd43da7f399b42256f4ec409c7cd3a1.tar.gz
Document -u in the usage().
Make usage fit on a standard 80-column display.
Diffstat (limited to 'usr.bin/telnet/main.c')
-rw-r--r--usr.bin/telnet/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/telnet/main.c b/usr.bin/telnet/main.c
index 4b4a13a..91da94d 100644
--- a/usr.bin/telnet/main.c
+++ b/usr.bin/telnet/main.c
@@ -96,8 +96,8 @@ usage()
"[-4] [-6] [-8] [-E] [-K] [-L] [-N] [-S tos] [-X atype] [-a] [-c] [-d]",
"\n\t[-e char] [-k realm] [-l user] [-f/-F] [-n tracefile] ",
#else
- "[-4] [-6] [-8] [-E] [-L] [-N] [-S tos] [-a] [-c] [-d] [-e char] [-l user]",
- "\n\t[-n tracefile] ",
+ "[-4] [-6] [-8] [-E] [-L] [-N] [-S tos] [-a] [-c] [-d]",
+ "\n\t[-e char] [-l user] [-n tracefile] ",
#endif
#if defined(TN3270) && defined(unix)
# ifdef AUTHENTICATION
@@ -105,15 +105,15 @@ usage()
"[-noasyncnet] [-r] [-s src_addr] [-t transcom] ",
# else
"[-noasynch] [-noasynctty] [-noasyncnet] [-r]\n\t"
- "[-s src_addr] [-t transcom]",
+ "[-s src_addr] [-t transcom] ",
# endif
#else
- "[-r] [-s src_addr] ",
+ "[-r] [-s src_addr] [-u] ",
#endif
#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
- "[-P policy]"
+ "[-P policy] "
#endif
- "[host-name [port]]"
+ "\n\t[host-name [port]]"
);
exit(1);
}
@@ -162,9 +162,6 @@ main(argc, argv)
{
switch(ch) {
- case 'u':
- family = AF_UNIX;
- break;
case '4':
family = AF_INET;
break;
@@ -304,6 +301,9 @@ main(argc, argv)
prompt);
#endif
break;
+ case 'u':
+ family = AF_UNIX;
+ break;
case 'x':
fprintf(stderr,
"%s: Warning: -x ignored, no ENCRYPT support.\n",
OpenPOWER on IntegriCloud