Subject: kern/12967: mcd.c won't compile because of type (fix included)
To: None <gnats-bugs@gnats.netbsd.org>
From: Thilo Mezger <thilo.mezger@innominate.com>
List: netbsd-bugs
Date: 05/17/2001 10:10:50
>Number:         12967
>Category:       kern
>Synopsis:       typo
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 17 01:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thilo Mezger
>Release:        NetBSD-1-5 source 2001-05-17
>Organization:
	innominate AG
>Environment:
	
System: NetBSD netbsd 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (MYKERNEL) #2: Fri May 11 12:59:39 CEST 2001 root@netbsd:/usr/src/sys/arch/i386/compile/MYKERNEL i386


>Description:
	missing # in #ifdef
>How-To-Repeat:
	compile mcd.c
>Fix:
--- /sys/dev/isa/mcd.c.orig	Thu May 17 10:03:31 2001
+++ /sys/dev/isa/mcd.c	Thu May 17 10:03:42 2001
@@ -617,9 +617,9 @@
 	switch (cmd) {
 	case DIOCGDINFO:
 		*(struct disklabel *)addr = *(sc->sc_dk.dk_label);
 		return 0;
-ifdef __HAVE_OLD_DISKLABEL
+#ifdef __HAVE_OLD_DISKLABEL
 	case ODIOCGDINFO:
 		newlabel = *(sc->sc_dk.dk_label);
 		if (newlabel.d_npartitions > OLDMAXPARTITIONS)
 			return ENOTTY;
>Release-Note:
>Audit-Trail:
>Unformatted: