Subject: bin/32629: Type errors in sbin/route/route.c
To: None <,>
From: None <>
List: netbsd-bugs
Date: 01/25/2006 16:05:00
>Number:         32629
>Category:       bin
>Synopsis:       Type errors in sbin/route/route.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 25 16:05:00 +0000 2006
>Originator:     Yves-Emmanuel JUTARD
>Release:        3.0.0
THALES Communication
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
In file sbin/route/route.c,v 1.75
- l. 102, function 'bprintf' is declared with its second arg being 'u_char *'
- this function is subsequently called several time, each time with a second arg of type char[]
Since char and u_char are not the same, my compiler refuse it.
Compile this file with some type checking activated.
function 'bprintf' should be declared and defined taking a char* as a second arg.
As far as I have seen, no further modification is needed in function 'bprintf'.