[U-Boot] [U-Boot, 1/2] tools: mkenvimage: Fix read() stdin error handling

Tom Rini trini at konsulko.com
Sun Apr 29 21:04:26 UTC 2018


On Fri, Apr 20, 2018 at 03:29:30PM +0200, Alexander Dahl wrote:

> On success read() returns the number of bytes read or zero for EOF. On
> error -1 is returned and errno is set, so the right way to test if read
> had failed is to test the return value instead of errno.
> 
> Signed-off-by: Alexander Dahl <ada at thorsis.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180429/ffbca92f/attachment.sig>


More information about the U-Boot mailing list