Subject: bin/32629: Type errors in sbin/route/route.c
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <yves-emmanuel.jutard@fr.thalesgroup.com>
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
>Organization:
THALES Communication
>Environment:
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
>Description:
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.
>How-To-Repeat:
Compile this file with some type checking activated.
>Fix:
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'.