From f4ef1ef7800544d6be643b5191de1b72717d2674 Mon Sep 17 00:00:00 2001 From: rnordier Date: Mon, 22 Feb 1999 09:36:54 +0000 Subject: Make various minor corrections. --- usr.sbin/boot0cfg/boot0cfg.8 | 4 ++-- usr.sbin/boot0cfg/boot0cfg.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin/boot0cfg') diff --git a/usr.sbin/boot0cfg/boot0cfg.8 b/usr.sbin/boot0cfg/boot0cfg.8 index 28a5d9e..e949cc7 100644 --- a/usr.sbin/boot0cfg/boot0cfg.8 +++ b/usr.sbin/boot0cfg/boot0cfg.8 @@ -22,7 +22,7 @@ .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: $ +.\" $Id: boot0cfg.8,v 1.1.1.1 1999/02/21 21:23:42 rnordier Exp $ .\" .Dd February 21, 1999 .Dt BOOT0CFG 8 @@ -112,7 +112,7 @@ and to save slice selection information.) This is the default; a .Sq noupdate option causes the MBR to be treated as read-only. .El -.It Fl t Ar secs +.It Fl t Ar ticks Set the timeout value to .Ar ticks . (There are approximately 18.2 ticks per second.) diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index 4075023..67d0c88 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -26,8 +26,8 @@ #ifndef lint static const char rcsid[] = -"$Id: $"; -#endif /* not lint */ + "$Id: boot0cfg.c,v 1.1.1.1 1999/02/21 21:23:42 rnordier Exp $"; +#endif /* not lint */ #include #include @@ -126,7 +126,7 @@ main(int argc, char *argv[]) if (argc != 1) usage(); disk = mkrdev(*argv); - up = B_flag || d_arg || o_flag || t_arg; + up = B_flag || d_arg != -1 || o_flag || t_arg != -1; if ((fd = open(disk, up ? O_RDWR : O_RDONLY)) == -1) err(1, "%s", disk); if ((n = read(fd, buf, MBRSIZE)) == -1) -- cgit v1.1