From 5b02333e84f8998d65b39ad509f9c9c5b9df1186 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 4 Nov 2011 13:36:02 +0000 Subject: Add missing static keywords for global variables to tools in sbin/. These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. --- sbin/badsect/badsect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/badsect') diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c index 9389171..f180410 100644 --- a/sbin/badsect/badsect.c +++ b/sbin/badsect/badsect.c @@ -71,9 +71,9 @@ __FBSDID("$FreeBSD$"); #define sblock disk.d_fs #define acg disk.d_cg -struct uufsd disk; -struct fs *fs = &sblock; -int errs; +static struct uufsd disk; +static struct fs *fs = &sblock; +static int errs; int chkuse(daddr_t, int); -- cgit v1.1