Date: Fri, 6 May 2016 15:36:26 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299180 - head/sys/cam/scsi Message-ID: <201605061536.u46FaQST007786@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605061536.u46FaQST007786>