Re: [PATCH] Introduce QEMU_NEW()

Avi Kivity
2011-07-25T10:02:38Z

On 07/25/2011 12:56 PM, Alexander Graf wrote:
> >
> > That argument can be used to block any change. You'll get used to it in time. The question is, is the new interface better or not.
>
> I agree that it keeps you from accidently malloc'ing a struct of pointer size. But couldn't we also just add this to checkpatch.pl?

Better APIs trump better patch review.

--
error compiling committee.c: too many arguments to function