Subject: kern/1035: Conflicting types in src/sys/lib/libsa/open.c
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Peter Svensson <petersv@df.lth.se>
List: netbsd-bugs
Date: 05/08/1995 08:50:02
>Number:         1035
>Category:       kern
>Synopsis:       mismatch of type in open in libsa/open.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May  8 08:50:01 1995
>Originator:     Peter Svensson
>Organization:
The Computer Society at Lund Univ. and Lund Inst. of Technology
"	"
>Release:        950507<NetBSD-current source date>
>Environment:
Sun SparcStation 1.0, running NetBSD current
	
System: NetBSD piau.df.lth.se 1.0A NetBSD 1.0A (PIAU.SCSI) #2: Thu Jan 19 13:46:27 PST 1995 petersv@piau.df.lth.se:/usr/src/sys/arch/sparc/compile/PIAU.SCSI sparc


>Description:
The function "open" in /usr/src/sys/lib/libsa/open.c is declared 
differently from its declaration in /usr/src/sys/lib/libsa/stand.h. The 
declaration in stand.h omits "const" for the filename. Const is used in 
open.c. 
	
>How-To-Repeat:
cd /usr/src/sys/lib/libsa ; make
	
>Fix:
Add "const" to type of filename in the declaration of "open" in stand.h.
	
>Audit-Trail:
>Unformatted: