summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-09-29 11:23:39 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-09-29 11:23:39 +0000
commit1c9b41f26562fae6769834c7fda102ee684406fa (patch)
tree0e1ba489d675bf9784b5c03f2ac3c1f33daa3a36 /usr.bin
parent95b91acdbea55a82b7b2eea6a1ed589c4bd22295 (diff)
correction to SYNOPSIS and usage(): host argument must be specified
if using port argument; from simon@freebsd
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tftp/main.c6
-rw-r--r--usr.bin/tftp/tftp.15
2 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 16d04510fe1..fae92fc6342 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.19 2003/09/25 09:45:46 jmc Exp $ */
+/* $OpenBSD: main.c,v 1.20 2003/09/29 11:23:38 jmc Exp $ */
/* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: main.c,v 1.19 2003/09/25 09:45:46 jmc Exp $";
+static const char rcsid[] = "$OpenBSD: main.c,v 1.20 2003/09/29 11:23:38 jmc Exp $";
#endif /* not lint */
/* Many bug fixes are from Jim Guyton <guyton@rand-unix> */
@@ -196,7 +196,7 @@ setpeer(int argc, char *argv[])
argv = margv;
}
if ((argc < 2) || (argc > 3)) {
- printf("usage: %s [host] [port]\n", argv[0]);
+ printf("usage: %s [host [port]]\n", argv[0]);
return;
}
if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) {
diff --git a/usr.bin/tftp/tftp.1 b/usr.bin/tftp/tftp.1
index 4e94ea28a3c..a4a7ba6c1ab 100644
--- a/usr.bin/tftp/tftp.1
+++ b/usr.bin/tftp/tftp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tftp.1,v 1.8 2003/09/25 09:45:46 jmc Exp $
+.\" $OpenBSD: tftp.1,v 1.9 2003/09/29 11:23:38 jmc Exp $
.\" $NetBSD: tftp.1,v 1.5 1995/08/18 14:45:44 pk Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
@@ -38,8 +38,7 @@
.Nd trivial file transfer program
.Sh SYNOPSIS
.Nm tftp
-.Op Ar host
-.Op Ar port
+.Op Ar host Oo Ar port Oc
.Sh DESCRIPTION
.Nm
is the user interface to the Internet