Subject: lib/18415: __byte_swap_word_variable -- with different width due to prototype
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/25/2002 08:31:34
>Number:         18415
>Category:       lib
>Synopsis:       pgm w/htons gets error on __byte_swap_word_variable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 06:32:00 PDT 2002
>Originator:     John Hascall
>Release:        NetBSD 1.6
	Iowa State Universsity
System: NetBSD 1.6 NetBSD 1.6 (GENERIC) #2: Sat Sep 7 15:28:11 CDT 2002 i386
Architecture: i386
Machine: i386
	Compiling dhcp results in the following which Ted Lemon says is
	a NetBSD bug:

# make
cc -g  -I/usr/local/src/dhcp/dhcp-3.0.1rc9  \
 -I/usr/local/src/dhcp/dhcp-3.0.1rc9/includes -Wall -Wstrict-prototypes \
 -Wno-unused -Wno-comment  -Wno-uninitialized -Werror  \
 -Wimplicit-function-declaration -Wpointer-arith -Wcast-qual \
 -Wcast-align -Wwrite-strings -Wconversion -Wmissing-prototypes \
 -Wmissing-declarations -Wnested-externs  -pipe    -c bpf.c
cc1: warnings being treated as errors
bpf.c: In function `if_register_receive':
bpf.c:323: warning: passing arg 1 of `__byte_swap_word_variable' \
 with different width due to prototype
*** Error code 1


	get dhcp-3.0.1rc9 from