Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 19:02: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: r227257 - head/usr.sbin/pwd_mkdb
Message-ID:  <201111061902.pA6J2QPZ037091@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Nov  6 19:02:25 2011
New Revision: 227257
URL: http://svn.freebsd.org/changeset/base/227257

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

Modified:
  head/usr.sbin/pwd_mkdb/pwd_mkdb.c

Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.c
==============================================================================
--- head/usr.sbin/pwd_mkdb/pwd_mkdb.c	Sun Nov  6 19:02:20 2011	(r227256)
+++ head/usr.sbin/pwd_mkdb/pwd_mkdb.c	Sun Nov  6 19:02:25 2011	(r227257)
@@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$");
 #define LEGACY_VERSION(x)  _PW_VERSIONED(x, 3)
 #define CURRENT_VERSION(x) _PW_VERSIONED(x, 4)
 
-HASHINFO openinfo = {
+static HASHINFO openinfo = {
 	4096,		/* bsize */
 	32,		/* ffactor */
 	256,		/* nelem */



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