From owner-cvs-all@FreeBSD.ORG Thu Jul 21 20:11:51 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D12216A420 for ; Thu, 21 Jul 2005 20:11:51 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F7BD43D7D for ; Thu, 21 Jul 2005 20:11:15 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so58467rna for ; Thu, 21 Jul 2005 13:10:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=fAfKhhAr1rnHbL+A4BcB3G0z/fwljoxepFqLGIVkNhjXYq7mRs9H3feUJ4/ALaDCC580s0PIsfDMNP99bwq7hb5mbqCgaQ8kghjz4/sc1nVMpQDvExAxjfXBnnfe2CZTYNgrm2q+OAo4rIFIxdkDnjR0OjVa6a/xVEjT1MidVzY= Received: by 10.38.151.80 with SMTP id y80mr1903058rnd; Thu, 21 Jul 2005 12:59:54 -0700 (PDT) Received: from ?192.168.1.200? ([213.64.231.30]) by mx.gmail.com with ESMTP id 71sm388395rnc.2005.07.21.12.59.50; Thu, 21 Jul 2005 12:59:52 -0700 (PDT) Message-ID: <42DFFEB2.7020002@gmail.com> Date: Thu, 21 Jul 2005 21:59:46 +0200 From: Pawel Worach User-Agent: Mozilla Thunderbird 1.0+ (X11/20050720) MIME-Version: 1.0 To: Gleb Smirnoff References: <200507211231.j6LCVgLY079731@repoman.freebsd.org> In-Reply-To: <200507211231.j6LCVgLY079731@repoman.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netgraph netgraph.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 20:11:51 -0000 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