mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 13:45:09 +00:00
Don't allocate dhcp_state structure when DHCP is not configured
This commit is contained in:
parent
b674f5cd33
commit
b9c287ceff
1 changed files with 1 additions and 1 deletions
|
|
@ -102,13 +102,13 @@ static int tcpecho_netsetup()
|
|||
* network has already been configured by NSH's start-up logic.
|
||||
*/
|
||||
|
||||
struct dhcpc_state ds;
|
||||
#ifndef CONFIG_NSH_BUILTIN_APPS
|
||||
struct in_addr addr;
|
||||
#if defined(CONFIG_EXAMPLES_TCPECHO_DHCPC) || defined(CONFIG_EXAMPLES_TCPECHO_NOMAC)
|
||||
uint8_t mac[IFHWADDRLEN];
|
||||
#endif
|
||||
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
|
||||
struct dhcpc_state ds;
|
||||
void *handle;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue