From owner-freebsd-hackers Thu Jun 7 9:57:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 1487F37B401 for ; Thu, 7 Jun 2001 09:57:48 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 7171 invoked by uid 1000); 7 Jun 2001 16:56:34 -0000 Date: Thu, 7 Jun 2001 19:56:34 +0300 From: Peter Pentchev To: hackers@FreeBSD.org Subject: Re: free() and const warnings Message-ID: <20010607195634.I724@ringworld.oblivion.bg> Mail-Followup-To: hackers@FreeBSD.org References: <20010607190722.G724@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010607190722.G724@ringworld.oblivion.bg>; from roam@orbitel.bg on Thu, Jun 07, 2001 at 07:07:22PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev wrote: > Hi, > > Is free((void *) (size_t) ptr) the only way to free a const whatever *ptr > with WARNS=2? (or more specifically, with -Wcast-qual) Uhm. OK. So size_t may not be enough to hold a pointer. What is it then - caddr_t? G'luck, Peter -- "yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message