summaryrefslogtreecommitdiffstats
path: root/usr.sbin/devinfo
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 19:01:48 +0000
committered <ed@FreeBSD.org>2011-11-06 19:01:48 +0000
commit2aa810aa99a1853a77856048566d6983bebe748d (patch)
tree5b4dc9a974b148b575c0b3ea9aab10112a87e782 /usr.sbin/devinfo
parent57acbc3db8c0e89d8ccd4d31cca3b8e6522fabc6 (diff)
downloadFreeBSD-src-2aa810aa99a1853a77856048566d6983bebe748d.zip
FreeBSD-src-2aa810aa99a1853a77856048566d6983bebe748d.tar.gz
Mark global functions and/or variables in devinfo(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin/devinfo')
-rw-r--r--usr.sbin/devinfo/devinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c
index 73dcfd5..32d2932 100644
--- a/usr.sbin/devinfo/devinfo.c
+++ b/usr.sbin/devinfo/devinfo.c
@@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include "devinfo.h"
-int rflag;
-int vflag;
+static int rflag;
+static int vflag;
static void print_resource(struct devinfo_res *);
static int print_device_matching_resource(struct devinfo_res *, void *);
OpenPOWER on IntegriCloud