From 5bc896bcc267f940409282f869b11818d4e24ac3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 14 Apr 2018 22:14:18 +0000 Subject: [PATCH] Make first a 'bool' instead of a 'boolean_t'. 'bool' is preferred to 'boolean_t'. We only get the boolean_t definition by header pollution (though the same is true for bool). Since we use both, switch entirely to bool. Note: We still have TRUE/FALSE instead of true/false in heavy use in the rest of the file. These are with ints of various flavors, so that's appropriate, even though we should eventually migrate to bool and true/false (though the tables they are in are nicely packed with short and wouldn't be so nicely packed with bool, another reason to leave it alone for now). --- sys/i386/i386/db_disasm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/i386/i386/db_disasm.c b/sys/i386/i386/db_disasm.c index b3a67636dd08..3bfe24054fcc 100644 --- a/sys/i386/i386/db_disasm.c +++ b/sys/i386/i386/db_disasm.c @@ -1166,7 +1166,7 @@ db_disasm(db_addr_t loc, bool altfmt) int i_size; int i_mode; int regmodrm = 0; - boolean_t first; + bool first; int displ; int prefix; int rep; @@ -1338,9 +1338,9 @@ db_disasm(db_addr_t loc, bool altfmt) } } db_printf("\t"); - for (first = TRUE; + for (first = true; i_mode != 0; - i_mode >>= 8, first = FALSE) + i_mode >>= 8, first = false) { if (!first) db_printf(",");