Date: Thu, 07 Jun 2001 19:55:54 -0600 From: Warner Losh <imp@harmony.village.org> To: John Baldwin <jhb@FreeBSD.ORG> Cc: Peter Pentchev <roam@orbitel.bg>, hackers@FreeBSD.ORG Subject: Re: free() and const warnings Message-ID: <200106080155.f581tsV16004@harmony.village.org> In-Reply-To: Your message of "Thu, 07 Jun 2001 10:20:51 PDT." <XFMail.010607102051.jhb@FreeBSD.org> References: <XFMail.010607102051.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <XFMail.010607102051.jhb@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106080155.f581tsV16004>