diff options
author | 2004-01-26 22:57:20 +0000 | |
---|---|---|
committer | 2004-01-26 22:57:20 +0000 | |
commit | 688bf9cce8c40d616a327100662f26754032658f (patch) | |
tree | 51908e51c0f7592c48d060f4da64243f7989e951 | |
parent | Mostly sync with other ppc-based ports. This should be factorized someday... (diff) | |
download | wireguard-openbsd-688bf9cce8c40d616a327100662f26754032658f.tar.xz wireguard-openbsd-688bf9cce8c40d616a327100662f26754032658f.zip |
Asking for a too short softc size in your cfattach structure is known to
cause premature death in laboratory animals. Don't do that.
-rw-r--r-- | sys/arch/mvmeppc/dev/mainbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvmeppc/dev/mainbus.c b/sys/arch/mvmeppc/dev/mainbus.c index 1ff53f3acb2..e779e75e7e6 100644 --- a/sys/arch/mvmeppc/dev/mainbus.c +++ b/sys/arch/mvmeppc/dev/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.5 2004/01/14 20:50:49 miod Exp $ */ +/* $OpenBSD: mainbus.c,v 1.6 2004/01/26 22:57:20 miod Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -45,7 +45,7 @@ static void mbattach(struct device *, struct device *, void *); static int mbprint(void *, const char *); struct cfattach mainbus_ca = { - sizeof(struct device), mbmatch, mbattach + sizeof(struct mainbus_softc), mbmatch, mbattach }; struct cfdriver mainbus_cd = { NULL, "mainbus", DV_DULL |