summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen2001-03-09 21:24:12 +0000
committerEric Andersen2001-03-09 21:24:12 +0000
commit3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332 (patch)
treec9e6d3d695cbb2449132428a32fb6c309aad870f /init
parentdd91724aa089e344d0f05e40a338dcce481c1845 (diff)
downloadbusybox-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.zip
busybox-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.tar.gz
A cleanup patch from Jeff Garzik to static-ify a number of
namespace polluting things that really should be static.
Diffstat (limited to 'init')
-rw-r--r--init/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c
index 52ee677..a0f15b0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -174,7 +174,7 @@ struct initActionTag {
initAction *nextPtr;
initActionEnum action;
};
-initAction *initActionList = NULL;
+static initAction *initActionList = NULL;
static char *secondConsole = VT_SECONDARY;
@@ -255,7 +255,7 @@ static void message(int device, char *fmt, ...)
}
/* Set terminal settings to reasonable defaults */
-void set_term(int fd)
+static void set_term(int fd)
{
struct termios tty;
@@ -670,7 +670,7 @@ static void reboot_signal(int sig)
#endif /* ! DEBUG_INIT */
-void new_initAction(initActionEnum action, char *process, char *cons)
+static void new_initAction(initActionEnum action, char *process, char *cons)
{
initAction *newAction;
@@ -725,7 +725,7 @@ static void delete_initAction(initAction * action)
* _is_ defined, but /etc/inittab is missing, this
* results in the same set of default behaviors.
* */
-void parse_inittab(void)
+static void parse_inittab(void)
{
#ifdef BB_FEATURE_USE_INITTAB
FILE *file;