From owner-freebsd-net Fri Apr 26 10: 7:45 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id F114C37B405; Fri, 26 Apr 2002 10:07:36 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g3QH77L87605; Fri, 26 Apr 2002 20:07:07 +0300 (EEST) (envelope-from ru) Date: Fri, 26 Apr 2002 20:07:07 +0300 From: Ruslan Ermilov To: Barney Wolff Cc: Igor M Podlesny , net@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: patch -- An ingress filter (RFC2827) Message-ID: <20020426170707.GA87482@sunbay.com> References: <20020414180447.A93954@mars-gw.morning.ru> <20020426091620.GA18917@sunbay.com> <20020426213657.D85230@mars-gw.morning.ru> <20020426164427.GA82505@sunbay.com> <20020426130139.A34980@tp.databus.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <20020426130139.A34980@tp.databus.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2002 at 01:01:39PM -0400, Barney Wolff wrote: > When did this change? "const char *ptr" used to mean that the thing > pointed to cannot be changed, but the pointer itself can be. So far > as I know, it still does. Educate me, please, if that's no longer so. >=20 > On Fri, Apr 26, 2002 at 07:44:27PM +0300, Ruslan Ermilov wrote: > > > > 3. Double `const' doesn't do any good. (I was once confused about= this too.) > > >=20 > > > (const char *const ptr? > > >=20 > > > Why? I deem `const' can't make a code worse, only better, cause it ma= kes an > > > additional description of variables/functions/code/algo...) > > >=20 > > Because this is merely equivalent to "const char *ptr". >=20 Someone already pointed that out. Me stands corrected. :-) There's a single example of this in n869.txt ISO C-99 draft I have. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8yYk7Ukv4P6juNwoRAiI/AJ0QrS3+DTBase+Ail5ef0sD4kTimQCeI7Bn kjZVAbQWiTOa70+bRPhuG2g= =h1dW -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message