summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
committered <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
commit5b02333e84f8998d65b39ad509f9c9c5b9df1186 (patch)
tree3cdfecf4c6772b1de7694dadb6b4b6431ecfdb02 /sbin/mount
parent89ec155d247591875dd57c531f710aa8a05cdb16 (diff)
downloadFreeBSD-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/mount')
-rw-r--r--sbin/mount/mount.c2
-rw-r--r--sbin/mount/mount_fs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 3f6d2ea..cf142e4 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$");
#define MOUNT_META_OPTION_FSTAB "fstab"
#define MOUNT_META_OPTION_CURRENT "current"
-int debug, fstab_style, verbose;
+static int debug, fstab_style, verbose;
struct cpa {
char **a;
diff --git a/sbin/mount/mount_fs.c b/sbin/mount/mount_fs.c
index cb25bc5..526d493 100644
--- a/sbin/mount/mount_fs.c
+++ b/sbin/mount/mount_fs.c
@@ -58,7 +58,7 @@ static const char rcsid[] =
#include "extern.h"
#include "mntopts.h"
-struct mntopt mopts[] = {
+static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_END
};
OpenPOWER on IntegriCloud