Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rdate Sort options alphabetically.
details: https://anonhg.NetBSD.org/src/rev/c9ebafdb4ba7
branches: trunk
changeset: 355984:c9ebafdb4ba7
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Sat Aug 26 18:16:05 2017 +0000
description:
Sort options alphabetically.
diffstat:
usr.sbin/rdate/rdate.8 | 12 ++++++------
usr.sbin/rdate/rdate.c | 8 ++++----
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (69 lines):
diff -r 1956b6683adc -r c9ebafdb4ba7 usr.sbin/rdate/rdate.8
--- a/usr.sbin/rdate/rdate.8 Sat Aug 26 17:59:24 2017 +0000
+++ b/usr.sbin/rdate/rdate.8 Sat Aug 26 18:16:05 2017 +0000
@@ -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 @@
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
diff -r 1956b6683adc -r c9ebafdb4ba7 usr.sbin/rdate/rdate.c
--- a/usr.sbin/rdate/rdate.c Sat Aug 26 17:59:24 2017 +0000
+++ b/usr.sbin/rdate/rdate.c Sat Aug 26 18:16:05 2017 +0000
@@ -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)
{
- (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
Home |
Main Index |
Thread Index |
Old Index