From 94cd9385788250adfcd8ed7dcca336f460b893fe Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 18:50:26 +0000 Subject: [PATCH] Mark global functions and/or variables in which(1) static where possible. This allows compilers and static analyzers to more thorough analysis. --- usr.bin/which/which.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/which/which.c b/usr.bin/which/which.c index 3b8224da43d..2c11b80c1f5 100644 --- a/usr.bin/which/which.c +++ b/usr.bin/which/which.c @@ -40,8 +40,8 @@ __FBSDID("$FreeBSD$"); static void usage(void); static int print_matches(char *, char *); -int silent; -int allpaths; +static int silent; +static int allpaths; int main(int argc, char **argv)