From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 11 06:54:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08A5916A4CE for ; Mon, 11 Oct 2004 06:54:21 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B96943D53 for ; Mon, 11 Oct 2004 06:54:20 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i9B6sAU572752; Mon, 11 Oct 2004 08:54:10 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i9B6sAI64452; Mon, 11 Oct 2004 08:54:10 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i9B6s8e07491; Mon, 11 Oct 2004 08:54:08 +0200 (MET DST) Date: Mon, 11 Oct 2004 08:54:13 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: Mike Hunter In-Reply-To: <20041008161442.GA9862@ack.Berkeley.EDU> Message-ID: <20041011084925.N25731@beagle.kn.op.dlr.de> References: <20041005054213.GA11770@lesanti.hq.sinectis.com.ar> <20041005202816.GA14973@titan.klemm.apsfilter.org> <20041005205040.GH31397@lesanti.hq.sinectis.com.ar> <20041006060437.GA23364@titan.klemm.apsfilter.org> <416579E1.8050308@nuclearelephant.com> <20041008173138.Y14215@beagle.kn.op.dlr.de> <20041008161442.GA9862@ack.Berkeley.EDU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: please help with: warning: initialization makes integer from pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 06:54:21 -0000 On Fri, 8 Oct 2004, Mike Hunter wrote: MH>On Oct 08, "Harti Brandt" wrote: MH> MH>> On Fri, 8 Oct 2004, Dan Nelson wrote: MH>> MH>> Memset is actually not portable if the structure contains pointers because MH>> it would initialize the pointers to 0 values not to 0 pointers. A 0 MH>> pointer not necessarily has a 0 value. A pointer can be portably be MH>> initialize to the 0-pointer only by assigning NULL (or 0) (or by assigning MH>> another pointer that is alreay initialized). MH> MH>Sick! MH> MH>Are there actually systems out there that don't have "all-zero" NULL pointers? If you ask this question on comp.std.c I'm sure you'll get a number of positive answers, but be prepared to start a _long_ thread :-) harti