Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi make all bitfields unsigned int



details:   https://anonhg.NetBSD.org/src/rev/e0795ee9a5fe
branches:  trunk
changeset: 770687:e0795ee9a5fe
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 29 16:04:39 2011 +0000

description:
make all bitfields unsigned int

diffstat:

 sys/dev/iscsi/iscsi.h       |   8 ++++----
 sys/dev/iscsi/iscsi_ioctl.h |  30 +++++++++++++++---------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diffs (73 lines):

diff -r d9ad8ef3cea3 -r e0795ee9a5fe sys/dev/iscsi/iscsi.h
--- a/sys/dev/iscsi/iscsi.h     Sat Oct 29 16:03:33 2011 +0000
+++ b/sys/dev/iscsi/iscsi.h     Sat Oct 29 16:04:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi.h,v 1.1 2011/10/23 21:15:02 agc Exp $    */
+/*     $NetBSD: iscsi.h,v 1.2 2011/10/29 16:04:39 christos Exp $       */
 
 /*-
  * Copyright (c) 2004,2006,2011 The NetBSD Foundation, Inc.
@@ -55,9 +55,9 @@
 */
 
 typedef struct {
-       int                     mutual_auth:1;
-       int                     is_secure:1;
-       int                     auth_number:4;
+       unsigned int            mutual_auth:1;
+       unsigned int            is_secure:1;
+       unsigned int            auth_number:4;
        iscsi_auth_types_t      auth_type[ISCSI_AUTH_OPTIONS];
 } iscsi_auth_info_t;
 
diff -r d9ad8ef3cea3 -r e0795ee9a5fe sys/dev/iscsi/iscsi_ioctl.h
--- a/sys/dev/iscsi/iscsi_ioctl.h       Sat Oct 29 16:03:33 2011 +0000
+++ b/sys/dev/iscsi/iscsi_ioctl.h       Sat Oct 29 16:04:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi_ioctl.h,v 1.1 2011/10/23 21:15:02 agc Exp $      */
+/*     $NetBSD: iscsi_ioctl.h,v 1.2 2011/10/29 16:04:39 christos Exp $ */
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -41,19 +41,19 @@
        uint32_t status;
        int socket;
        struct {
-               int HeaderDigest:1;
-               int DataDigest:1;
-               int MaxConnections:1;
-               int DefaultTime2Wait:1;
-               int DefaultTime2Retain:1;
-               int MaxRecvDataSegmentLength:1;
-               int auth_info:1;
-               int user_name:1;
-               int password:1;
-               int target_password:1;
-               int TargetName:1;
-               int TargetAlias:1;
-               int ErrorRecoveryLevel:1;
+               unsigned int HeaderDigest:1;
+               unsigned int DataDigest:1;
+               unsigned int MaxConnections:1;
+               unsigned int DefaultTime2Wait:1;
+               unsigned int DefaultTime2Retain:1;
+               unsigned int MaxRecvDataSegmentLength:1;
+               unsigned int auth_info:1;
+               unsigned int user_name:1;
+               unsigned int password:1;
+               unsigned int target_password:1;
+               unsigned int TargetName:1;
+               unsigned int TargetAlias:1;
+               unsigned int ErrorRecoveryLevel:1;
        } is_present;
        iscsi_auth_info_t auth_info;
        iscsi_login_session_type_t login_type;
@@ -205,7 +205,7 @@
        uint32_t session_id;
        uint32_t connection_id;
        struct {
-               int immediate:1;
+               unsigned int immediate:1;
        } options;
        uint64_t lun;
        scsireq_t req;



Home | Main Index | Thread Index | Old Index