diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-19 14:20:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-13 10:49:21 +0200 |
commit | 9296260a7858f0e9cb4d0123bdabd72f1e457bbd (patch) | |
tree | 1759e33bbd3ffed2fad8007f53ad753ef3f8c036 /net/net.c | |
parent | 3487f1ee8e0345ed22c6097be4466c0b96590604 (diff) | |
download | barebox-9296260a7858f0e9cb4d0123bdabd72f1e457bbd.tar.gz |
net: split NetLoop in NetLoop and NetLoopInit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -238,8 +238,7 @@ void ArpTimeoutCheck(void) * Main network processing loop. */ -int -NetLoop(proto_t protocol) +int NetLoopInit(proto_t protocol) { struct eth_device *eth_current = eth_get_current(); IPaddr_t ip; @@ -292,6 +291,11 @@ NetLoop(proto_t protocol) NetOurNativeVLAN = getenv_VLAN("nvlan"); NetServerIP = dev_get_param_ip(ð_current->dev, "serverip"); + return 0; +} + +int NetLoop(proto_t protocol) +{ /* * Start the ball rolling with the given start function. From * here on, this code is a state machine driven by received |