]> git.sur5r.net Git - u-boot/commit
eth-raw-os.c: Add cast to bind(2) call
authorTom Rini <trini@konsulko.com>
Sat, 28 Nov 2015 13:04:40 +0000 (08:04 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2016 13:09:47 +0000 (08:09 -0500)
commit71229098a61c0b8c5abe24c4a644234e1679bca3
tree36edcb70df11ddc1f061356afb4c013fdb323c22
parentaf7a55514a03788c23fd2ea5c9364195f58dc38e
eth-raw-os.c: Add cast to bind(2) call

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@ni.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/sandbox/cpu/eth-raw-os.c