Re: libfdt: Remove un-const-safe fdt_set_header macro

2007-10-25 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > The fdt_set_header() macro casts an arbitrary pointer into (struct > fdt_header *) to set fdt header fields. While we need to change the > type, so that we can use this macro on the usual (void *) used to > represent a device tree blob, the current m

libfdt: Remove un-const-safe fdt_set_header macro

2007-10-24 Thread David Gibson
The fdt_set_header() macro casts an arbitrary pointer into (struct fdt_header *) to set fdt header fields. While we need to change the type, so that we can use this macro on the usual (void *) used to represent a device tree blob, the current macro also casts away any const on the input pointer, w