Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2009 11:38:39 +0000 (UTC)
From:      "Ralf S. Engelschall" <rse@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193225 - head/bin/sh
Message-ID:  <200906011138.n51BcduU077727@svn.freebsd.org>

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



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