svn commit: r332509 - head/sys/i386/i386
Warner Losh
imp at FreeBSD.org
Sat Apr 14 22:14:19 UTC 2018
Author: imp
Date: Sat Apr 14 22:14:18 2018
New Revision: 332509
URL: https://svnweb.freebsd.org/changeset/base/332509
Log:
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).
Modified:
head/sys/i386/i386/db_disasm.c
Modified: head/sys/i386/i386/db_disasm.c
==============================================================================
--- head/sys/i386/i386/db_disasm.c Sat Apr 14 21:54:22 2018 (r332508)
+++ head/sys/i386/i386/db_disasm.c Sat Apr 14 22:14:18 2018 (r332509)
@@ -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(",");
More information about the svn-src-all
mailing list