From owner-freebsd-hackers Thu Jun 7 18:55:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 2094337B403; Thu, 7 Jun 2001 18:55:55 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f581tsV16004; Thu, 7 Jun 2001 19:55:54 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200106080155.f581tsV16004@harmony.village.org> To: John Baldwin Subject: Re: free() and const warnings Cc: Peter Pentchev , hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 07 Jun 2001 10:20:51 PDT." References: Date: Thu, 07 Jun 2001 19:55:54 -0600 From: Warner Losh 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 In message John Baldwin writes: : Of course, this begs the question of why you are free'ing a const. :) Sometimes that's the only handle that you have on the object :-). I sometimes think that changing free to be const void * is the right answer, but that has its own set problems :-) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message