[PATCHv1 4/5] tests: jittertest: fix set of compiler warnings

Artem Bityutskiy Artem.Bityutskiy at nokia.com
Tue Apr 5 10:20:04 EDT 2011


On Tue, 2011-04-05 at 16:55 +0300, Andy Shevchenko wrote:
> -        write(fdSnapshot, readBuf, readBytes);
> +       int writeBytes = write(fdSnapshot, readBuf, readBytes);
> +       if (writeBytes < 0)
> +               perror("write error"); 

Then you should better check for (writeBytes != readBytes). Similar to
the read case you fix in this patch.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list