[U-Boot] [U-Boot,1/4] eth-raw-os.c: Add cast to bind(2) call

Tom Rini trini at konsulko.com
Fri Jan 15 14:10:28 CET 2016


On Sat, Nov 28, 2015 at 08:04:40AM -0500, Tom Rini wrote:

> With more recent gcc versions we otherwise get an error like:
> note: expected 'const struct sockaddr *' but argument is of type
> 'struct sockaddr_in *'
> 
> and the common solution here is to cast, rather than re-work the code.
> 
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160115/85b953b2/attachment.sig>


More information about the U-Boot mailing list