Date: Tue, 27 Dec 2016 22:31:06 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r310644 - head/sys/cam/ctl Message-ID: <201612272231.uBRMV6dO034748@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Dec 27 22:31:06 2016 New Revision: 310644 URL: https://svnweb.freebsd.org/changeset/base/310644 Log: Fix/synchronize field types in struct ctl_modepage_header. MFC after: 2 weeks Modified: head/sys/cam/ctl/ctl.c head/sys/cam/ctl/ctl.h Modified: head/sys/cam/ctl/ctl.c ============================================================================== --- head/sys/cam/ctl/ctl.c Tue Dec 27 22:28:14 2016 (r310643) +++ head/sys/cam/ctl/ctl.c Tue Dec 27 22:31:06 2016 (r310644) @@ -5939,7 +5939,7 @@ ctl_do_mode_select(union ctl_io *io) int page_len, page_len_offset, page_len_size; union ctl_modepage_info *modepage_info; struct ctl_lun *lun; - int *len_left, *len_used; + uint16_t *len_left, *len_used; int retval, i; ctsio = &io->scsiio; Modified: head/sys/cam/ctl/ctl.h ============================================================================== --- head/sys/cam/ctl/ctl.h Tue Dec 27 22:28:14 2016 (r310643) +++ head/sys/cam/ctl/ctl.h Tue Dec 27 22:31:06 2016 (r310644) @@ -74,8 +74,8 @@ struct ctl_port_entry { struct ctl_modepage_header { uint8_t page_code; uint8_t subpage; - int32_t len_used; - int32_t len_left; + uint16_t len_used; + uint16_t len_left; }; union ctl_modepage_info {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612272231.uBRMV6dO034748>