summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-09 21:21:34 +0000
committermsmith <msmith@FreeBSD.org>1998-10-09 21:21:34 +0000
commit851bc35d713505dee1fa01b96b7bccc4695b8c00 (patch)
treeed7c5f9d6bfdc8741ead54962b063a3f16cc548d /sys
parent603a840c2874ba53b44cbd55ef3ffe9fed5676bf (diff)
downloadFreeBSD-src-851bc35d713505dee1fa01b96b7bccc4695b8c00.zip
FreeBSD-src-851bc35d713505dee1fa01b96b7bccc4695b8c00.tar.gz
Don't try to initialise the environment out of a sysinit, it's handled
in MD code instead.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_environment.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c
index 5020398..790fbf4 100644
--- a/sys/kern/kern_environment.c
+++ b/sys/kern/kern_environment.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_environment.c,v 1.1 1998/10/09 00:31:29 msmith Exp $
+ * $Id: kern_environment.c,v 1.2 1998/10/09 11:03:46 jkh Exp $
*/
/*
@@ -47,15 +47,6 @@ char *kern_envp;
static char *kernenv_next(char *cp);
-static void
-kernenv_init(void* arg)
-{
- if (bootinfo.bi_envp != 0)
- kern_envp = (char *)bootinfo.bi_envp;
-}
-
-SYSINIT(kernenv, SI_SUB_CONSOLE, SI_ORDER_FIRST, kernenv_init, 0);
-
char *
getenv(char *name)
{
OpenPOWER on IntegriCloud