cvs commit: src/sys/netgraph netgraph.h

Pawel Worach pawel.worach at gmail.com
Thu Jul 21 20:11:52 GMT 2005


Gleb Smirnoff wrote:
> glebius     2005-07-21 12:31:42 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/netgraph         netgraph.h 
>   Log:
>   Enhance struct ng_hook - add hk_type field. This field will describe
>   data link type of the hook. It will be used to ease autoconfiguration
>   of netgraph and also to print warning messages, when incompatoble nodes
>   are connected together.
>   

This broke the build, hk_type is not initialized in ng_base.c:139.

cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -Werror -D_KERNEL 
-DKLD_MODULE -nostdinc -I-   -include 
/usr/obj/usr/src/sys/IBMT41/opt_global.h -I. -I@ -I@/contrib/altq 
-I@/../include -finline-limit=8000 -fno-common -g 
-I/usr/obj/usr/src/sys/IBMT41 -mno-align-long-strings 
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 
-mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:139: 
warning: initialization makes integer from pointer without a cast
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:140: 
warning: initialization from incompatible pointer type
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
warning: braces around scalar initializer
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
warning: (near initialization for `ng_deadhook.hk_node')
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
error: empty scalar initializer
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
error: (near initialization for `ng_deadhook.hk_node')
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
error: initializer element is not constant
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:141: 
error: (near initialization for `ng_deadhook.hk_node')
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:142: 
warning: missing braces around initializer
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:142: 
warning: (near initialization for `ng_deadhook.hk_hooks')
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:150: 
error: initializer element is not constant
/usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:150: 
error: (near initialization for `ng_deadhook.hk_hooks')

-- 
Pawel


More information about the cvs-src mailing list