diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 19:01:48 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 19:01:48 +0000 |
commit | 2aa810aa99a1853a77856048566d6983bebe748d (patch) | |
tree | 5b4dc9a974b148b575c0b3ea9aab10112a87e782 /usr.sbin/devinfo | |
parent | 57acbc3db8c0e89d8ccd4d31cca3b8e6522fabc6 (diff) | |
download | FreeBSD-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.c | 4 |
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 *); |