From 233d3887c1fa4a8a62c6d8d9b0facfaeb1b20115 Mon Sep 17 00:00:00 2001 From: ad Date: Mon, 2 Aug 1999 12:52:27 +0000 Subject: [PATCH] In pm_screen(), return 0 if fballoc() fails, not 1. --- sys/arch/pmax/dev/findcons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/pmax/dev/findcons.c b/sys/arch/pmax/dev/findcons.c index a7ce4fa018e1..edd88d3885de 100644 --- a/sys/arch/pmax/dev/findcons.c +++ b/sys/arch/pmax/dev/findcons.c @@ -1,4 +1,4 @@ -/* $NetBSD: findcons.c,v 1.14 1999/07/25 22:50:28 ad Exp $ */ +/* $NetBSD: findcons.c,v 1.15 1999/08/02 12:52:27 ad Exp $ */ /* * Copyright (c) 1998 Jonathan Stone @@ -34,7 +34,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: findcons.c,v 1.14 1999/07/25 22:50:28 ad Exp $$"); +__KERNEL_RCSID(0, "$NetBSD: findcons.c,v 1.15 1999/08/02 12:52:27 ad Exp $$"); #include #include @@ -282,7 +282,7 @@ pm_screen(crtslot) base = (caddr_t)MIPS_PHYS_TO_KSEG1(KN01_SYS_PCC); if (fballoc(base, &fi)) - return (1); + return (0); if (pminit(fi, base, 0, 1)) { cd.cn_pri = CN_INTERNAL;