summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-01-23 20:27:32 +0000
committercharnier <charnier@FreeBSD.org>2000-01-23 20:27:32 +0000
commit6d71b03118171a529ce20db739bb034d8b92bfa6 (patch)
treeac97b5647204ad8022342adbb54bcdab8549bcdf /usr.sbin/watch
parentb271eaef88e7ebd69a2ddefce0f008ef26456e9b (diff)
downloadFreeBSD-src-6d71b03118171a529ce20db739bb034d8b92bfa6.zip
FreeBSD-src-6d71b03118171a529ce20db739bb034d8b92bfa6.tar.gz
Add missing .El.
-Wall cleaning.
Diffstat (limited to 'usr.sbin/watch')
-rw-r--r--usr.sbin/watch/watch.85
-rw-r--r--usr.sbin/watch/watch.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/watch/watch.8 b/usr.sbin/watch/watch.8
index b8539d8..1b42685 100644
--- a/usr.sbin/watch/watch.8
+++ b/usr.sbin/watch/watch.8
@@ -57,7 +57,9 @@ Allow write access to observed tty.
.It Ar tty
Tty may be specified as an tty-style device, such as a pseudo tty device,
a virtual console, or a serial line, etc.
-Names may be preceded by "/dev/".
+Names may be preceded by
+.Pa /dev/ .
+.El
.Sh OPERATION
While running in interactive mode, all user input is discarded except for:
.Pp
@@ -69,6 +71,7 @@ Exit
Clear screen.
.It Sy "<control-X>"
Change attached tty.
+.El
.Sh RESTRICTIONS
Only the superuser can run
.Nm Ns .
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index a9e2629..817f7fc 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -288,7 +288,6 @@ main(ac, av)
char **av;
{
int res, nread, b_size = MIN_SIZE;
- extern int optind;
char ch, *buf, chb[READB_LEN];
fd_set fd_s;
@@ -426,5 +425,6 @@ main(ac, av)
fatal(EX_IOERR, "write failed");
}
} /* While */
+ return(0);
}
OpenPOWER on IntegriCloud