svn commit: r193225 - head/bin/sh

Ralf S. Engelschall rse at FreeBSD.org
Mon Jun 1 11:38:39 UTC 2009


Author: rse
Date: Mon Jun  1 11:38:38 2009
New Revision: 193225
URL: http://svn.freebsd.org/changeset/base/193225

Log:
  use explicit 'unsigned int' instead of just the implicit-style 'unsigned' to make linting tools (e.g. FlexeLint) happy, too

Modified:
  head/bin/sh/mksyntax.c

Modified: head/bin/sh/mksyntax.c
==============================================================================
--- head/bin/sh/mksyntax.c	Mon Jun  1 11:15:54 2009	(r193224)
+++ head/bin/sh/mksyntax.c	Mon Jun  1 11:38:38 2009	(r193225)
@@ -354,7 +354,7 @@ output_type_macros(void)
 	char **pp;
 
 	if (digit_contig)
-		macro[0] = "#define is_digit(c)\t((unsigned)((c) - '0') <= 9)";
+		macro[0] = "#define is_digit(c)\t((unsigned int)((c) - '0') <= 9)";
 	for (pp = macro ; *pp ; pp++)
 		fprintf(hfile, "%s\n", *pp);
 	if (digit_contig)


More information about the svn-src-all mailing list