Subject: port-hp300/3850: disklabel.c defines boot1[MAXPATHLEN] which is not used
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 07/10/1997 09:21:44
>Number:         3850
>Category:       port-hp300
>Synopsis:       disklabel.c defines boot1[MAXPATHLEN] which is not used
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 10 00:35:01 1997
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        NetBSD current 08.07.1997
>Environment:
	
HP 9000/400T running current

>Description:
	
disklabel.c defines boot1[MAXPATHLEN] which is not used, thus gcc is
complaining.

>How-To-Repeat:
	
Try to compile /src/sbin/disklabel on a current NetBSD/hp300 machine.

>Fix:
	
Apply the following patch to /src/sbin/disklabel/disklabel.c:

*** disklabel.c-orig	Thu Jul 10 09:15:04 1997
--- disklabel.c	Thu Jul 10 09:16:12 1997
***************
*** 116,122 ****
  static char	*xxboot;     /* primary boot */
  static char	*bootxx;     /* secondary boot */
  static char	boot0[MAXPATHLEN];
- static char	boot1[MAXPATHLEN];
  #endif
  
  static enum	{
--- 116,121 ----
>Audit-Trail:
>Unformatted:
disklabel.c defines boot1[MAXPATHLEN] which is not used