Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 18:49:30 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227238 - head/usr.bin/expand
Message-ID:  <201111061849.pA6InUJB035990@svn.freebsd.org>

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



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