diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-23 06:54:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-23 06:54:20 -0600 |
commit | bc6a12f6a5495486b65712fb075f4c3a6448ec78 (patch) | |
tree | c218aed666e21f952c1a1f0a6713bf7f399bd18c /apps | |
parent | 371d564efd88053842c29526aefd8ae4ea7436b4 (diff) | |
download | px4-nuttx-bc6a12f6a5495486b65712fb075f4c3a6448ec78.tar.gz px4-nuttx-bc6a12f6a5495486b65712fb075f4c3a6448ec78.tar.bz2 px4-nuttx-bc6a12f6a5495486b65712fb075f4c3a6448ec78.zip |
Don't allocate dhcp_state structure when DHCP is not configured
Diffstat (limited to 'apps')
-rw-r--r-- | apps/examples/tcpecho/tcpecho_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c index c26462f14..e70028fce 100644 --- a/apps/examples/tcpecho/tcpecho_main.c +++ b/apps/examples/tcpecho/tcpecho_main.c @@ -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 |