Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Use uint32_t for blocksize as per other uses ...



details:   https://anonhg.NetBSD.org/src/rev/24754c60682a
branches:  trunk
changeset: 332673:24754c60682a
user:      justin <justin%NetBSD.org@localhost>
date:      Fri Oct 03 00:00:11 2014 +0000

description:
Use uint32_t for blocksize as per other uses and to fix warnings

diffstat:

 sys/dev/scsipi/cd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d74a541bea3d -r 24754c60682a sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Thu Oct 02 23:07:30 2014 +0000
+++ b/sys/dev/scsipi/cd.c       Fri Oct 03 00:00:11 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.323 2014/08/10 16:44:36 tls Exp $     */
+/*     $NetBSD: cd.c,v 1.324 2014/10/03 00:00:11 justin Exp $  */
 
 /*-
  * Copyright (c) 1998, 2001, 2003, 2004, 2005, 2008 The NetBSD Foundation,
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.323 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.324 2014/10/03 00:00:11 justin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1809,7 +1809,7 @@
  * we count.
  */
 static int
-read_cd_capacity(struct scsipi_periph *periph, u_int *blksize, u_long *last_lba)
+read_cd_capacity(struct scsipi_periph *periph, uint32_t *blksize, u_long *last_lba)
 {
        struct scsipi_read_cd_capacity    cap_cmd;
        /*
@@ -1906,7 +1906,7 @@
 static u_long
 cd_size(struct cd_softc *cd, int flags)
 {
-       u_int blksize = 2048;
+       uint32_t blksize = 2048;
        u_long last_lba = 0, size;
        int error;
 



Home | Main Index | Thread Index | Old Index