aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-04-25 17:52:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-05-03 09:33:01 +0000
commitf6d7ceb2baa3dba1503165e7482d370cb0e32d9a (patch)
tree357e2698993559d2d13c74d65abdc76b53367951
parent35d8e035e22f4f79c28cdf713f7da94012a50b1b (diff)
boolean_t: change to unsigned int to avoid signed bitfield warnings
This is the final part, which actually makes boolean_t unsigned. Note that we do not change its size, nor do we try to change it directly to bool, since that results in a lot of regressions. Converting the remaining instances of boolean_t to plain C99 bool can now be done in a piecemeal fashion, after which boolean_t may hopefully be retired. MFC after: 1 week Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39753 (cherry picked from commit 3029b0b0e9d68eb54e3bdd9e3e49e0f0d2d57835)
-rw-r--r--sys/sys/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 58abcf00cebb..4117ed60660d 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -271,7 +271,7 @@ typedef __vm_size_t vm_size_t;
typedef __rman_res_t rman_res_t;
#ifdef _KERNEL
-typedef int boolean_t;
+typedef unsigned int boolean_t;
typedef struct _device *device_t;
typedef __intfptr_t intfptr_t;