summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat/fuser.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 18:49:36 +0000
committered <ed@FreeBSD.org>2011-11-06 18:49:36 +0000
commitb9deaeaf5165db1590f1d5bed3cbaffdcc221ba3 (patch)
tree1b85a84ffb883b69d196d38be9a560e21b2335a8 /usr.bin/fstat/fuser.c
parentb4971e80feba1fb8436b486961807d2a855b2f52 (diff)
downloadFreeBSD-src-b9deaeaf5165db1590f1d5bed3cbaffdcc221ba3.zip
FreeBSD-src-b9deaeaf5165db1590f1d5bed3cbaffdcc221ba3.tar.gz
Mark global functions and/or variables in fstat(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
Diffstat (limited to 'usr.bin/fstat/fuser.c')
-rw-r--r--usr.bin/fstat/fuser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fuser.c b/usr.bin/fstat/fuser.c
index 364d57c..dbb0d86 100644
--- a/usr.bin/fstat/fuser.c
+++ b/usr.bin/fstat/fuser.c
@@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
/*
* File access mode flags table.
*/
-struct {
+static const struct {
int flag;
char ch;
} fflags[] = {
@@ -67,7 +67,7 @@ struct {
/*
* Usage flags translation table.
*/
-struct {
+static const struct {
int flag;
char ch;
} uflags[] = {
OpenPOWER on IntegriCloud