Subject: kern/15049: memset() redefined lib/libkern/libkern.h and dev/isapnp/isapnpvar.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hamajima@nagoya.ydc.co.jp>
List: netbsd-bugs
Date: 12/25/2001 14:24:00
>Number:         15049
>Category:       kern
>Synopsis:       memset() redefined lib/libkern/libkern.h and dev/isapnp/isapnpvar.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 24 21:25:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Katsuomi Hamajima
>Release:        NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD 1.5ZA (ATOM) #14: Tue Dec 25 03:00:34 JST 2001 hamajima@sggg.segausers.gr.jp:/usr/src/sys/arch/i386/compile/ATOM i386
Architecture: i386
Machine: i386
>Description:
In file included from ../../../../dev/isa/isa.c:59:
../../../../dev/isapnp/isapnpvar.h:73: warning: `memset' redefined
../../../../lib/libkern/libkern.h:265: warning: this is the location of the previous definition

>How-To-Repeat:
define isapnp device
isapnp0 at isa?

>Fix:
delete memset() in isapnpvar.h

@@ -69,9 +69,6 @@
 
 #else
 
-/* XXX */
-# define memset(a, b, c)       bzero(a, c)
-
 # define ISAPNP_WRITE_ADDR(sc, v) \
     bus_space_write_1(sc->sc_iot, sc->sc_addr_ioh, 0, v)
 # define ISAPNP_WRITE_DATA(sc, v) \

>Release-Note:
>Audit-Trail:
>Unformatted: