mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples: discover: Use htonl() instead of HTONL() in discover_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
5a10c0e8e7
commit
5d37c68a73
1 changed files with 3 additions and 3 deletions
|
|
@ -116,18 +116,18 @@ int main(int argc, FAR char *argv[])
|
|||
#ifdef CONFIG_EXAMPLES_DISCOVER_DHCPC
|
||||
addr.s_addr = 0;
|
||||
#else
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_DISCOVER_IPADDR);
|
||||
addr.s_addr = htonl(CONFIG_EXAMPLES_DISCOVER_IPADDR);
|
||||
#endif
|
||||
netlib_set_ipv4addr("eth0", &addr);
|
||||
|
||||
/* Set up the default router address */
|
||||
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_DISCOVER_DRIPADDR);
|
||||
addr.s_addr = htonl(CONFIG_EXAMPLES_DISCOVER_DRIPADDR);
|
||||
netlib_set_dripv4addr("eth0", &addr);
|
||||
|
||||
/* Setup the subnet mask */
|
||||
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_DISCOVER_NETMASK);
|
||||
addr.s_addr = htonl(CONFIG_EXAMPLES_DISCOVER_NETMASK);
|
||||
netlib_set_ipv4netmask("eth0", &addr);
|
||||
|
||||
/* New versions of netlib_set_ipvXaddr will not bring the network up,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue