svn commit: r310644 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Tue Dec 27 22:31:07 UTC 2016


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 {


More information about the svn-src-all mailing list