svn commit: r227257 - head/usr.sbin/pwd_mkdb

[ Available lists | Index of svn-src-head | Month of Nov 2011 | Week of 6 Nov 2011 | Raw email | View thread | Wrap long lines | Reply ]
From
Ed Schouten <ed@FreeBSD.org>
Date
6 Nov 2011 19:02:26
Subject
svn commit: r227257 - head/usr.sbin/pwd_mkdb
Message-ID
201111061902.pA6J2QPZ037091@svn.freebsd.org


[ Hide this part ]
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 */


Elapsed time: 0.067 seconds