summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2003-09-29 11:23:38 +0000
committerjmc <jmc@openbsd.org>2003-09-29 11:23:38 +0000
commite82ae7ee7cd3bc0523166f9efa60d2459c1cf1c6 (patch)
tree83e102cb0b1656c8fdd89f0e6928533339f67758
parentMake this compile. (diff)
downloadwireguard-openbsd-e82ae7ee7cd3bc0523166f9efa60d2459c1cf1c6.tar.xz
wireguard-openbsd-e82ae7ee7cd3bc0523166f9efa60d2459c1cf1c6.zip
correction to SYNOPSIS and usage(): host argument must be specified
if using port argument; from simon@freebsd
-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