diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-11 12:25:32 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-11 12:25:32 -0600 |
commit | 57d2acba435f67d561b63e6635330f182edc5047 (patch) | |
tree | 75ae50c7989a55783fcac71695fc4296ef1257a4 /apps/examples/xmlrpc | |
parent | fb9444d0919f03b59d58f726f05993968ecdfdd7 (diff) | |
download | px4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.tar.gz px4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.tar.bz2 px4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.zip |
Long needed clean up of DNS resolver for coding style and naming conventions
Diffstat (limited to 'apps/examples/xmlrpc')
-rw-r--r-- | apps/examples/xmlrpc/Kconfig | 2 | ||||
-rw-r--r-- | apps/examples/xmlrpc/xmlrpc_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/xmlrpc/Kconfig b/apps/examples/xmlrpc/Kconfig index 80ee5a225..aa47e4672 100644 --- a/apps/examples/xmlrpc/Kconfig +++ b/apps/examples/xmlrpc/Kconfig @@ -23,7 +23,7 @@ config EXAMPLES_XMLRPC_DHCPC default n depends on EXAMPLES_XMLRPC && !NSH_BUILTIN_APPS select NETUTILS_DHCPC - select NETUTILS_RESOLV + select NETUTILS_DNSCLIENT config EXAMPLES_XMLRPC_NOMAC bool "Use Canned MAC Address" diff --git a/apps/examples/xmlrpc/xmlrpc_main.c b/apps/examples/xmlrpc/xmlrpc_main.c index 5f5ce5f06..3a743bb82 100644 --- a/apps/examples/xmlrpc/xmlrpc_main.c +++ b/apps/examples/xmlrpc/xmlrpc_main.c @@ -311,7 +311,7 @@ static int xmlrpc_netinit(void) #ifdef CONFIG_EXAMPLES_XMLRPC_DHCPC /* Set up the resolver */ - resolv_init(); + dns_bind(); /* Get the MAC address of the NIC */ @@ -345,7 +345,7 @@ static int xmlrpc_netinit(void) if (ds.dnsaddr.s_addr != 0) { - resolv_conf(&ds.dnsaddr); + dns_setserver(&ds.dnsaddr); } dhcpc_close(handle); |