Do not dot terminate err() string. Cross reference using .Xr

This commit is contained in:
Philippe Charnier 2000-03-26 14:50:56 +00:00
parent 742c75f3b7
commit e88b3b4f9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58620
2 changed files with 10 additions and 10 deletions

View File

@ -44,7 +44,7 @@
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm Ruptime .Nm Ruptime
gives a status line like gives a status line like
.Ar uptime .Xr uptime 1
for each machine on the local network; these are formed from packets for each machine on the local network; these are formed from packets
broadcast by each host on the network once every three minutes. broadcast by each host on the network once every three minutes.
.Pp .Pp
@ -55,13 +55,12 @@ report has been received for 4 days are not shown in the list at all.
The options are as follows: The options are as follows:
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl a .It Fl a
Users idle an hour or more are not counted unless the Include all users. By default, if a user hasn't typed to the system for
.Fl a an hour or more, then the user will be omitted from the output.
flag is given.
.It Fl l .It Fl l
Sort by load average. Sort by load average.
.It Fl r .It Fl r
Reverses the sort order. Reverse the sort order.
.It Fl t .It Fl t
Sort by uptime. Sort by uptime.
.It Fl u .It Fl u

View File

@ -31,16 +31,18 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
/* $FreeBSD$ */
#ifndef lint #ifndef lint
static char copyright[] = static const char copyright[] =
"@(#) Copyright (c) 1983, 1993, 1994\n\ "@(#) Copyright (c) 1983, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n"; The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
#if 0
static char sccsid[] = "@(#)ruptime.c 8.2 (Berkeley) 4/5/94"; static char sccsid[] = "@(#)ruptime.c 8.2 (Berkeley) 4/5/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
@ -83,7 +85,6 @@ main(argc, argv)
int argc; int argc;
char **argv; char **argv;
{ {
extern int optind;
struct dirent *dp; struct dirent *dp;
struct hs *hsp; struct hs *hsp;
struct whod *wd; struct whod *wd;
@ -161,7 +162,7 @@ main(argc, argv)
++nhosts; ++nhosts;
} }
if (nhosts == 0) if (nhosts == 0)
errx(1, "no hosts in %s.", _PATH_RWHODIR); errx(1, "no hosts in %s", _PATH_RWHODIR);
(void)time(&now); (void)time(&now);
qsort(hs, nhosts, sizeof(hs[0]), cmp); qsort(hs, nhosts, sizeof(hs[0]), cmp);