mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Make various minor corrections.
This commit is contained in:
parent
c4812f564a
commit
ed720ec3dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44207
|
@ -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.)
|
||||
|
|
|
@ -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 <sys/param.h>
|
||||
#include <sys/disklabel.h>
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue