svn commit: trunk/busybox/init
aldot at busybox.net
aldot at busybox.net
Mon Jul 21 11:53:05 UTC 2008
Author: aldot
Date: 2008-07-21 04:53:04 -0700 (Mon, 21 Jul 2008)
New Revision: 22901
Log:
- remove superfluous forward declaration
Modified:
trunk/busybox/init/init.c
Changeset:
Modified: trunk/busybox/init/init.c
===================================================================
--- trunk/busybox/init/init.c 2008-07-21 11:30:51 UTC (rev 22900)
+++ trunk/busybox/init/init.c 2008-07-21 11:53:04 UTC (rev 22901)
@@ -86,7 +86,6 @@
};
/* Function prototypes */
-static void delete_init_action(struct init_action *a);
static void halt_reboot_pwoff(int sig) NORETURN;
static void waitfor(pid_t pid)
@@ -474,6 +473,23 @@
_exit(-1);
}
+static void delete_init_action(struct init_action *action)
+{
+ struct init_action *a, *b = NULL;
+
+ for (a = init_action_list; a; b = a, a = a->next) {
+ if (a == action) {
+ if (b == NULL) {
+ init_action_list = a->next;
+ } else {
+ b->next = a->next;
+ }
+ free(a);
+ break;
+ }
+ }
+}
+
/* Run all commands of a particular type */
static void run_actions(int action_type)
{
@@ -649,23 +665,6 @@
a->command, a->action_type, a->terminal);
}
-static void delete_init_action(struct init_action *action)
-{
- struct init_action *a, *b = NULL;
-
- for (a = init_action_list; a; b = a, a = a->next) {
- if (a == action) {
- if (b == NULL) {
- init_action_list = a->next;
- } else {
- b->next = a->next;
- }
- free(a);
- break;
- }
- }
-}
-
/* NOTE that if CONFIG_FEATURE_USE_INITTAB is NOT defined,
* then parse_inittab() simply adds in some default
* actions(i.e., runs INIT_SCRIPT and then starts a pair
More information about the busybox-cvs
mailing list