[U-Boot] [U-Boot, v2, 2/2] net: bootp: Fix compile error processing ntpserver option

Tom Rini trini at konsulko.com
Tue May 15 12:28:52 UTC 2018


On Thu, May 03, 2018 at 08:19:03PM +1200, Chris Packham wrote:

> When the following configuration is set
> 
>   # CONFIG_CMD_DHCP is not set
>   CONFIG_CMD_BOOTP=y
>   CONFIG_BOOTP_NTPSERVER=y
> 
> The following compile error is observed
> 
>   error: used struct type value where scalar is required
>     if (net_ntp_server)
>         ^~~~~~~~~~~~~~
> 
> Resolve this by checking net_ntp_server.s_addr instead.
> 
> Signed-off-by: Chris Packham <judge.packham 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: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180515/d10e39f8/attachment.sig>


More information about the U-Boot mailing list