From dcs@newsguy.com  Sat Jan 23 19:35:23 1999
Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA01002
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 23 Jan 1999 19:35:22 -0800 (PST)
          (envelope-from dcs@newsguy.com)
Received: from daniel.sobral by peach.ocn.ne.jp (8.9.1a/OCN) id MAA14977; Sun, 24 Jan 1999 12:35:09 +0900 (JST)
Received: (from root@localhost)
	by daniel.sobral (8.9.1/8.9.2) id MAA01857;
	Sun, 24 Jan 1999 12:34:28 +0900 (JST)
	(envelope-from root)
Message-Id: <199901240334.MAA01857@daniel.sobral>
Date: Sun, 24 Jan 1999 12:34:28 +0900 (JST)
From: dcs@newsguy.com
Reply-To: dcs@newsguy.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Typo in biosdisk.c
X-Send-Pr-Version: 3.2

>Number:         9651
>Category:       bin
>Synopsis:       When num_ide_disks got deprecated, it also got no-oped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 23 19:40:00 PST 1999
>Closed-Date:    Sat Jan 23 22:03:54 PST 1999
>Last-Modified:  Sat Jan 23 22:04:08 PST 1999
>Originator:     Daniel C. Sobral
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	src/sys/boot/i386/libi386/biosdisk.c, as of Jan 24 (in Japan, at least :)

>Description:

	Missing "unit =".

>How-To-Repeat:

	Try to use old num_ide_disks method. Alas, it will break existing
configurations.

>Fix:

	Apply the following fix:

--- biosdisk.c.orig	Sun Jan 24 12:28:43 1999
+++ biosdisk.c	Sun Jan 24 12:29:01 1999
@@ -802,7 +802,7 @@
 	if ((cp != nip) && (*cp == 0))
 	    unit = i;
     } else {
-	(biosdev & 0x7f) - unitofs;					/* allow for #wd compenstation in da case */
+	unit = (biosdev & 0x7f) - unitofs;					/* allow for #wd compenstation in da case */
     }
 
     rootdev = MAKEBOOTDEV(major,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: msmith 
State-Changed-When: Sat Jan 23 22:03:54 PST 1999 
State-Changed-Why:  
Whoops, fixed. 
>Unformatted:
