From owner-freebsd-net Fri Apr 26 10: 1:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from tp.databus.com (p72-186.acedsl.com [66.114.72.186]) by hub.freebsd.org (Postfix) with ESMTP id 1C54B37B404; Fri, 26 Apr 2002 10:01:41 -0700 (PDT) Received: from databus.com (localhost.databus.com [127.0.0.1]) by tp.databus.com (8.12.3/8.12.2) with ESMTP id g3QH1dp7035132; Fri, 26 Apr 2002 13:01:39 -0400 (EDT) (envelope-from barney@databus.com) Received: (from barney@localhost) by databus.com (8.12.3/8.12.3/Submit) id g3QH1dfn035131; Fri, 26 Apr 2002 13:01:39 -0400 (EDT) Date: Fri, 26 Apr 2002 13:01:39 -0400 From: Barney Wolff To: Ruslan Ermilov Cc: Igor M Podlesny , net@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: patch -- An ingress filter (RFC2827) Message-ID: <20020426130139.A34980@tp.databus.com> References: <20020414180447.A93954@mars-gw.morning.ru> <20020426091620.GA18917@sunbay.com> <20020426213657.D85230@mars-gw.morning.ru> <20020426164427.GA82505@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020426164427.GA82505@sunbay.com>; from ru@FreeBSD.ORG on Fri, Apr 26, 2002 at 07:44:27PM +0300 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 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. 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.) > > > > (const char *const ptr? > > > > Why? I deem `const' can't make a code worse, only better, cause it makes an > > additional description of variables/functions/code/algo...) > > > Because this is merely equivalent to "const char *ptr". -- Barney Wolff I never met a computer I didn't like. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message