noux: use lwip dhcp plugin, avoid code duplication

Ref #892
This commit is contained in:
Stefan Kalkowski 2013-09-24 10:43:38 +02:00 committed by Christian Helmuth
parent 8f0c789ed4
commit 4f541538bd
2 changed files with 1 additions and 10 deletions

View File

@ -67,15 +67,6 @@ static void select_notify()
void init_network()
{
PINF("--- noux: initialize network ---");
/**
* NOTE: we only call lwip_nic_init() because
* lwip_tcpip_init() was already called by libc_lwip's
* constructor and we don't want to have another tcpip
* thread.
*/
lwip_nic_init(0, 0, 0);
if (!libc_select_notify)
libc_select_notify = select_notify;

View File

@ -1,5 +1,5 @@
TARGET = noux_net
LIBS += alarm libc libc_lwip config
LIBS += alarm libc libc_lwip_nic_dhcp config
SRC_CC = main.cc net.cc