From e8f386b409fac7270cb866c2a142802223abfe8d Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 19:01:48 +0000 Subject: [PATCH] Mark global functions and/or variables in devinfo(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. --- usr.sbin/devinfo/devinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c index 73dcfd56448..32d2932b467 100644 --- a/usr.sbin/devinfo/devinfo.c +++ b/usr.sbin/devinfo/devinfo.c @@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$"); #include #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 *);