platform_ops.malloc() vs. realloc()

Segher Boessenkool segher at kernel.crashing.org
Thu Feb 22 21:31:49 EST 2007


> |         void *  (*malloc)(u32 size);

> |         void *  (*realloc)(void *ptr, unsigned long size);

> Is there a specific reason why the size parameters of malloc() and 
> realloc()
> differ in type?

There are good arguments to prefer either u32 or unsigned
long, so maybe the current situation is a compromise ;-P


Segher




More information about the Linuxppc-dev mailing list