summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 19:02:25 +0000
committered <ed@FreeBSD.org>2011-11-06 19:02:25 +0000
commit14d5ba532207bd4919a7a1b7583a8280b61f1900 (patch)
treef52bbb145ede2a544c6e4f92db74ad013a547628 /usr.sbin/pwd_mkdb
parentd0a630f9947625ecd0a08b03687a473d8fcfe611 (diff)
downloadFreeBSD-src-14d5ba532207bd4919a7a1b7583a8280b61f1900.zip
FreeBSD-src-14d5ba532207bd4919a7a1b7583a8280b61f1900.tar.gz
Mark global functions and/or variables in pwd_mkdb(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 79f91a9..0ba68a5 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -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 */
OpenPOWER on IntegriCloud