diff options
author | ed <ed@FreeBSD.org> | 2011-11-04 13:36:02 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-04 13:36:02 +0000 |
commit | 5b02333e84f8998d65b39ad509f9c9c5b9df1186 (patch) | |
tree | 3cdfecf4c6772b1de7694dadb6b4b6431ecfdb02 /sbin/tunefs | |
parent | 89ec155d247591875dd57c531f710aa8a05cdb16 (diff) | |
download | FreeBSD-src-5b02333e84f8998d65b39ad509f9c9c5b9df1186.zip FreeBSD-src-5b02333e84f8998d65b39ad509f9c9c5b9df1186.tar.gz |
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.
Diffstat (limited to 'sbin/tunefs')
-rw-r--r-- | sbin/tunefs/tunefs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index c219607..11ffbe6 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -70,7 +70,7 @@ __FBSDID("$FreeBSD$"); /* the optimization warning string template */ #define OPTWARN "should optimize for %s with minfree %s %d%%" -struct uufsd disk; +static struct uufsd disk; #define sblock disk.d_fs void usage(void); @@ -553,7 +553,7 @@ sbdirty(void) disk.d_fs.fs_clean = 0; } -int blocks; +static int blocks; static char clrbuf[MAXBSIZE]; static ufs2_daddr_t |