From owner-freebsd-current Tue Feb 18 11:55: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35C1537B401; Tue, 18 Feb 2003 11:55:07 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id C957443FB1; Tue, 18 Feb 2003 11:55:05 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 98BF3536E; Tue, 18 Feb 2003 20:55:02 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Jacques A. Vidrine" Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: memset prototype changed? From: Dag-Erling Smorgrav Date: Tue, 18 Feb 2003 20:55:02 +0100 In-Reply-To: <20030218160442.GB81793@madman.celabo.org> ("Jacques A. Vidrine"'s message of "Tue, 18 Feb 2003 10:04:42 -0600") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030218105240.GH92966@rot13.obsecurity.org> <20030218160442.GB81793@madman.celabo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Jacques A. Vidrine" writes: > On Tue, Feb 18, 2003 at 12:01:29PM +0100, Dag-Erling Smorgrav wrote: > > The code that fails to compile is blatantly wrong: > > > > memset(schedule, 0, sizeof(schedule)); > I wouldn't say `blantantly'. The expressions `schedule' and > `&schedule' are equivalent when `schedule' is an array type. ...but Key_schedule is an opaque type, so it is not correct to assume it's an array. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message