summaryrefslogtreecommitdiffstats
path: root/bin/sh/mkinit.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-01-20 12:44:50 +0000
committerjilles <jilles@FreeBSD.org>2013-01-20 12:44:50 +0000
commitcbc4c398d44760649fc29143cd80d3d2b15442ed (patch)
treef54c8326998bb42465e5f36fa16e3ac63b79d8e0 /bin/sh/mkinit.c
parente072d47ed32f3fa80eb1c091148c6dcbcc4bac1c (diff)
downloadFreeBSD-src-cbc4c398d44760649fc29143cd80d3d2b15442ed.zip
FreeBSD-src-cbc4c398d44760649fc29143cd80d3d2b15442ed.tar.gz
sh: Remove mkinit's initialization routine.
Instead, call the only init function left directly from main().
Diffstat (limited to 'bin/sh/mkinit.c')
-rw-r--r--bin/sh/mkinit.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/sh/mkinit.c b/bin/sh/mkinit.c
index 1d1d93e..d73e0e2 100644
--- a/bin/sh/mkinit.c
+++ b/bin/sh/mkinit.c
@@ -101,7 +101,7 @@ struct block {
*/
struct event {
- const char *name; /* name of event (e.g. INIT) */
+ const char *name; /* name of event (e.g. RESET) */
const char *routine; /* name of routine called on event */
const char *comment; /* comment describing routine */
struct text code; /* code for handling event */
@@ -114,11 +114,6 @@ char writer[] = "\
*/\n\
\n";
-char init[] = "\
-/*\n\
- * Initialization code.\n\
- */\n";
-
char reset[] = "\
/*\n\
* This routine is called when an error or an interrupt occurs in an\n\
@@ -127,7 +122,6 @@ char reset[] = "\
struct event event[] = {
- { "INIT", "init", init, { NULL, 0, NULL, NULL } },
{ "RESET", "reset", reset, { NULL, 0, NULL, NULL } },
{ NULL, NULL, NULL, { NULL, 0, NULL, NULL } }
};
OpenPOWER on IntegriCloud