svn commit: r227238 - head/usr.bin/expand

Ed Schouten ed at FreeBSD.org
Sun Nov 6 18:49:31 UTC 2011


Author: ed
Date: Sun Nov  6 18:49:30 2011
New Revision: 227238
URL: http://svn.freebsd.org/changeset/base/227238

Log:
  Mark global functions and/or variables in expand(1) static where possible.
  
  This allows compilers and static analyzers to more thorough analysis.

Modified:
  head/usr.bin/expand/expand.c

Modified: head/usr.bin/expand/expand.c
==============================================================================
--- head/usr.bin/expand/expand.c	Sun Nov  6 18:49:23 2011	(r227237)
+++ head/usr.bin/expand/expand.c	Sun Nov  6 18:49:30 2011	(r227238)
@@ -53,8 +53,8 @@ __FBSDID("$FreeBSD$");
 /*
  * expand - expand tabs to equivalent spaces
  */
-int	nstops;
-int	tabstops[100];
+static int	nstops;
+static int	tabstops[100];
 
 static void getstops(char *);
 static void usage(void);


More information about the svn-src-head mailing list