[PATCH 2/3] Handle absolute pathnames correctly in dtc_open_file.

Jon Loeliger jdl at jdl.com
Tue Jan 8 02:25:56 EST 2008


So, like, the other day Scott Wood mumbled:
> On Sun, Jan 06, 2008 at 02:37:16PM +1100, David Gibson wrote:
> > >  out:
> > > +	free((void *)file->dir);
> > 
> > That cast shouldn't be there.
> 
> It generates a constness warning otherwise.  I was on the fence over
> whether to just remove the constness (even though the data is never
> modified during its lifetime); would that be preferable?

The earlier patch was applied for functionality reasons.
If needed, a follow-up patch to sort this out is still welcome.

jdl



More information about the Linuxppc-dev mailing list