Author: dim
Date: Sun Dec 25 16:21:49 2016
New Revision: 310544
URL: https://svnweb.freebsd.org/changeset/base/310544

Log:
  MFC r305078 (by emaste):
  
  iscsi_initiator: make logout_req::reason unsigned char
  
  Previously this reported an error from Clang 3.9.0: implict conversion
  from 'int' to 'char' changes value from 128 to -128.
  
  Discussed with:       dim, trasz
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D7699

Modified:
  stable/11/sys/dev/iscsi_initiator/iscsi.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/iscsi_initiator/iscsi.h
==============================================================================
--- stable/11/sys/dev/iscsi_initiator/iscsi.h   Sun Dec 25 15:39:52 2016        
(r310543)
+++ stable/11/sys/dev/iscsi_initiator/iscsi.h   Sun Dec 25 16:21:49 2016        
(r310544)
@@ -356,7 +356,7 @@ typedef struct text_req {
 
 typedef struct logout_req {
      char      cmd;    // 0x06
-     char      reason; // 0 - close session
+     u_char    reason; // 0 - close session
                        // 1 - close connection
                        // 2 - remove the connection for recovery
      char      _2[2];
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to