summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
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/swapon
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/swapon')
-rw-r--r--sbin/swapon/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index ed13dc5..5b9a0ed 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -60,7 +60,7 @@ static void usage(void);
static int swap_on_off(char *name, int ignoreebusy);
static void swaplist(int, int, int);
-enum { SWAPON, SWAPOFF, SWAPCTL } orig_prog, which_prog = SWAPCTL;
+static enum { SWAPON, SWAPOFF, SWAPCTL } orig_prog, which_prog = SWAPCTL;
int
main(int argc, char **argv)
OpenPOWER on IntegriCloud