From 4c1a35b2a6bb5550d97339ba96cad64f36dafc38 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 4 Oct 1995 08:58:00 +0000 Subject: [PATCH] fix REALLY STUPID bug/typo don't look at the diffs.. it's too embarassing :) --- sys/kern/kern_conf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index a306085b3059..4c5f57cc431f 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_conf.c,v 1.1 1995/10/02 09:24:44 julian Exp $ + * $Id: kern_conf.c,v 1.2 1995/10/02 10:15:40 julian Exp $ */ #include @@ -45,7 +45,7 @@ extern d_open_t lkmenodev; */ #define ADDENTRY(TTYPE,NXXXDEV) \ int TTYPE##_add(dev_t *descrip, \ - struct TTYPE *cdeventry, \ + struct TTYPE *newentry, \ struct TTYPE *oldentry) \ { \ int i ; \ @@ -67,17 +67,17 @@ int TTYPE##_add(dev_t *descrip, \ } \ } \ \ - /* save old */ \ + /* maybe save old */ \ if (oldentry) { \ bcopy(&TTYPE[i], oldentry, sizeof(struct TTYPE)); \ } \ /* replace with new */ \ - bcopy(cdeventry, &TTYPE[i], sizeof(struct TTYPE)); \ + bcopy(newentry, &TTYPE[i], sizeof(struct TTYPE)); \ \ /* done! */ \ *descrip = makedev(i,0); \ return 0; \ } \ -ADDENTRY(cdevsw, nblkdev) -ADDENTRY(bdevsw, nchrdev) +ADDENTRY(bdevsw, nblkdev) +ADDENTRY(cdevsw, nchrdev)