Sort options alphabetically.

This commit is contained in:
ginsbach 2017-08-26 18:16:05 +00:00
parent 54287382d1
commit 6b34aef124
2 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: rdate.8,v 1.11 2009/10/21 01:07:47 snj Exp $
.\" $NetBSD: rdate.8,v 1.12 2017/08/26 18:16:05 ginsbach Exp $
.\"
.\" Copyright (c) 1994 Christos Zoulas
.\" All rights reserved.
@ -31,7 +31,7 @@
.Nd set the system's date from a remote host
.Sh SYNOPSIS
.Nm
.Op Fl psa
.Op Fl aps
.Ar host
.Sh DESCRIPTION
.Nm
@ -43,15 +43,15 @@ protocol which is usually implemented as a built-in service of
Available options:
.Pp
.Bl -tag -width indent
.It Fl p
Do not set, just print the remote time
.It Fl s
Do not print the time.
.It Fl a
Use the
.Xr adjtime 2
call to gradually skew the local time to the
remote time rather than just hopping.
.It Fl p
Do not set, just print the remote time
.It Fl s
Do not print the time.
.El
.Sh FILES
.Bl -tag -width /var/log/wtmp -compact

View File

@ -1,4 +1,4 @@
/* $NetBSD: rdate.c,v 1.20 2017/05/04 16:26:09 sevan Exp $ */
/* $NetBSD: rdate.c,v 1.21 2017/08/26 18:16:05 ginsbach Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: rdate.c,v 1.20 2017/05/04 16:26:09 sevan Exp $");
__RCSID("$NetBSD: rdate.c,v 1.21 2017/08/26 18:16:05 ginsbach Exp $");
#endif /* lint */
#include <sys/types.h>
@ -59,10 +59,10 @@ static void usage(void);
static void
usage(void)
{
(void) fprintf(stderr, "usage: %s [-psa] host\n", getprogname());
(void) fprintf(stderr, "usage: %s [-aps] host\n", getprogname());
(void) fprintf(stderr, " -a: use adjtime instead of instant change\n");
(void) fprintf(stderr, " -p: just print, don't set\n");
(void) fprintf(stderr, " -s: just set, don't print\n");
(void) fprintf(stderr, " -a: use adjtime instead of instant change\n");
}
int