Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 18:50:26 +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: r227245 - head/usr.bin/which
Message-ID:  <201111061850.pA6IoQGd036277@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Nov  6 18:50:26 2011
New Revision: 227245
URL: http://svn.freebsd.org/changeset/base/227245

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

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

Modified: head/usr.bin/which/which.c
==============================================================================
--- head/usr.bin/which/which.c	Sun Nov  6 18:50:19 2011	(r227244)
+++ head/usr.bin/which/which.c	Sun Nov  6 18:50:26 2011	(r227245)
@@ -40,8 +40,8 @@ __FBSDID("$FreeBSD$");
 static void	 usage(void);
 static int	 print_matches(char *, char *);
 	
-int 	silent;
-int 	allpaths;
+static int 	 silent;
+static int 	 allpaths;
 
 int
 main(int argc, char **argv)



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