Skip to content
Commit 4b4dc521 authored by Chris Packham's avatar Chris Packham Committed by Tom Rini
Browse files

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: default avatarChris Packham <judge.packham@gmail.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 9b23c73d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment