Make the source and the man page agree about the flags accepted by

ntpdate.

PR:             docs/12344
Submitted by:   Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
Reviewed by:    nik
This commit is contained in:
Nik Clayton 1999-07-05 23:06:33 +00:00
parent f591fcd118
commit 5cb0ef41b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48608
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
.\"
.\" $Id$
.\" $Id: ntpdate.8,v 1.4 1998/02/19 08:05:35 charnier Exp $
.\"
.Dd December 21, 1993
.Dt NTPDATE 8
@ -9,7 +9,7 @@
.Nd set the date and time via NTP
.Sh SYNOPSIS
.Nm
.Op Fl bds
.Op Fl bdqsv
.Op Fl o Ar version
.Op Fl a Ar key#
.Op Fl e Ar authdelay
@ -75,7 +75,12 @@ The
flag may be used to determine what
.Nm
will do without it actually doing it. Information useful for general
debugging will also be printed. By default
debugging will also be printed. The
.Fl q
flag is used to perform a simple query without binding a priviledged
UPD port. The
.Fl v
enables a few diagnostic messages. By default
.Nm
claims to be an NTP version 3 implementation in its outgoing packets. As
some older software will decline to respond to version 3 queries, the

View File

@ -251,7 +251,7 @@ main(argc, argv)
sys_maxservers = argc - ntp_optind;
if (errflg || sys_maxservers == 0) {
(void) fprintf(stderr,
"usage: %s [-bqs] [-a key#] [-k file] [-p samples] [-t timeo] server ...\n",
"usage: %s [-bdqsv] [-o version] [-a key#] [-e authdelay] [-k keyfile] [-p samples] [-t timeout] server ...\n",
progname);
exit(2);
}