On Tue, Jul 09, 2013 at 03:30:07PM +0800, Qiao Nuohan wrote: > +static int write_start_flat_header(int fd) > +{ > + char buf[MAX_SIZE_MDF_HEADER]; > + MakedumpfileHeader mh;
Why is buf[] necessary? You can write mh directly.
On Tue, Jul 09, 2013 at 03:30:07PM +0800, Qiao Nuohan wrote: > +static int write_start_flat_header(int fd) > +{ > + char buf[MAX_SIZE_MDF_HEADER]; > + MakedumpfileHeader mh;
Why is buf[] necessary? You can write mh directly.