Mark global functions and/or variables in devinfo(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
This commit is contained in:
parent
d35fcc6826
commit
e8f386b409
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user