svn commit: r299180 - head/sys/cam/scsi
Pedro F. Giffuni
pfg at FreeBSD.org
Fri May 6 15:36:27 UTC 2016
Author: pfg
Date: Fri May 6 15:36:25 2016
New Revision: 299180
URL: https://svnweb.freebsd.org/changeset/base/299180
Log:
sys/cam/scsi: unsigned some loop indexes.
Although usually small, values produced by nitems() are unsigned.
One more case where unsgining the index may be useful.
Modified:
head/sys/cam/scsi/scsi_cd.c
Modified: head/sys/cam/scsi/scsi_cd.c
==============================================================================
--- head/sys/cam/scsi/scsi_cd.c Fri May 6 15:16:13 2016 (r299179)
+++ head/sys/cam/scsi/scsi_cd.c Fri May 6 15:36:25 2016 (r299180)
@@ -1264,7 +1264,7 @@ cdgetpage(struct cd_mode_params *mode_pa
static int
cdgetpagesize(int page_num)
{
- int i;
+ u_int i;
for (i = 0; i < nitems(cd_page_size_table); i++) {
if (cd_page_size_table[i].page == page_num)
More information about the svn-src-head
mailing list