diff options
author | jilles <jilles@FreeBSD.org> | 2013-01-20 12:44:50 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-01-20 12:44:50 +0000 |
commit | cbc4c398d44760649fc29143cd80d3d2b15442ed (patch) | |
tree | f54c8326998bb42465e5f36fa16e3ac63b79d8e0 /bin/sh/mkinit.c | |
parent | e072d47ed32f3fa80eb1c091148c6dcbcc4bac1c (diff) | |
download | FreeBSD-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.c | 8 |
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 } } }; |