git: 3dddf73ee1eb - main - bhyve: Make bc_magic unsigned
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Oct 2022 15:33:54 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=3dddf73ee1eb1cea3146da2df376be48d4b2a589
commit 3dddf73ee1eb1cea3146da2df376be48d4b2a589
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-10-08 15:26:31 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-10-08 15:33:43 +0000
bhyve: Make bc_magic unsigned
This addresses a number of compiler warnings about signed/unsigned
comparisons in assertions.
MFC after: 1 week
---
usr.sbin/bhyve/block_if.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c
index 8f6c7828f2b1..52f6d92f11ee 100644
--- a/usr.sbin/bhyve/block_if.c
+++ b/usr.sbin/bhyve/block_if.c
@@ -97,7 +97,7 @@ struct blockif_elem {
};
struct blockif_ctxt {
- int bc_magic;
+ unsigned int bc_magic;
int bc_fd;
int bc_ischr;
int bc_isgeom;