Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mbrlabel minor LP64 nits



details:   https://anonhg.NetBSD.org/src/rev/655c3f38a831
branches:  trunk
changeset: 521852:655c3f38a831
user:      ross <ross%NetBSD.org@localhost>
date:      Thu Feb 07 02:14:02 2002 +0000

description:
minor LP64 nits

diffstat:

 sbin/mbrlabel/mbrlabel.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 4d0604a1826a -r 655c3f38a831 sbin/mbrlabel/mbrlabel.c
--- a/sbin/mbrlabel/mbrlabel.c  Thu Feb 07 02:07:05 2002 +0000
+++ b/sbin/mbrlabel/mbrlabel.c  Thu Feb 07 02:14:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbrlabel.c,v 1.18 2001/08/20 08:21:10 ad Exp $ */
+/*     $NetBSD: mbrlabel.c,v 1.19 2002/02/07 02:14:02 ross Exp $       */
 
 /*
  * Copyright (C) 1998 Wolfgang Solfrank.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mbrlabel.c,v 1.18 2001/08/20 08:21:10 ad Exp $");
+__RCSID("$NetBSD: mbrlabel.c,v 1.19 2002/02/07 02:14:02 ross Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -152,7 +152,7 @@
                perror("seek label");
                exit(1);
        }
-       if (read(sd, buf, DEV_BSIZE) != DEV_BSIZE) {
+       if (read(sd, buf, sizeof buf) != DEV_BSIZE) {
                perror("read label");
                exit(1);
        }
@@ -299,7 +299,7 @@
        if (argc != 1)
                usage();
 
-       if ((sd = opendisk(argv[0], O_RDWR, name, MAXPATHLEN, 0)) < 0) {
+       if ((sd = opendisk(argv[0], O_RDWR, name, (size_t)MAXPATHLEN, 0)) < 0) {
                perror(argv[0]);
                exit(1);
        }



Home | Main Index | Thread Index | Old Index