]> git.baikalelectronics.ru Git - uboot.git/commit
net: bootp: Fix compile error processing ntpserver option
authorChris Packham <judge.packham@gmail.com>
Thu, 3 May 2018 08:19:03 +0000 (20:19 +1200)
committerTom Rini <trini@konsulko.com>
Tue, 15 May 2018 01:28:38 +0000 (21:28 -0400)
commitc8bcd93e0214cf0c7b63bdce74849e308ec7c96f
tree19d9ff76e83c07a0f2353e085aa4dd77c529f970
parent225a00fcbb62183e2051f8bd8a2865156b0df860
net: bootp: Fix compile error processing ntpserver option

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@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/bootp.c