Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2018 22:14:18 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332509 - head/sys/i386/i386
Message-ID:  <201804142214.w3EMEIRu028631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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(",");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804142214.w3EMEIRu028631>