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/fsck | |
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/fsck')
-rw-r--r-- | sbin/fsck/fsck.c | 2 | ||||
-rw-r--r-- | sbin/fsck/preen.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c index 5e27010..768e670 100644 --- a/sbin/fsck/fsck.c +++ b/sbin/fsck/fsck.c @@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$"); static enum { IN_LIST, NOT_IN_LIST } which = NOT_IN_LIST; -TAILQ_HEAD(fstypelist, entry) opthead, selhead; +static TAILQ_HEAD(fstypelist, entry) opthead, selhead; struct entry { char *type; diff --git a/sbin/fsck/preen.c b/sbin/fsck/preen.c index 6204685..787bed0 100644 --- a/sbin/fsck/preen.c +++ b/sbin/fsck/preen.c @@ -62,7 +62,7 @@ struct partentry { char *p_type; /* file system type */ }; -TAILQ_HEAD(part, partentry) badh; +static TAILQ_HEAD(part, partentry) badh; struct diskentry { TAILQ_ENTRY(diskentry) d_entries; @@ -71,7 +71,7 @@ struct diskentry { int d_pid; /* 0 or pid of fsck proc */ }; -TAILQ_HEAD(disk, diskentry) diskh; +static TAILQ_HEAD(disk, diskentry) diskh; static int nrun = 0, ndisks = 0; |