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/init | |
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/init')
-rw-r--r-- | sbin/init/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c index 3f6b345..cce74bb 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -126,14 +126,14 @@ static state_func_t death_single(void); static state_func_t run_script(const char *); -enum { AUTOBOOT, FASTBOOT } runcom_mode = AUTOBOOT; +static enum { AUTOBOOT, FASTBOOT } runcom_mode = AUTOBOOT; #define FALSE 0 #define TRUE 1 -int Reboot = FALSE; -int howto = RB_AUTOBOOT; +static int Reboot = FALSE; +static int howto = RB_AUTOBOOT; -int devfs; +static int devfs; static void transition(state_t); static state_t requested_transition; |