summaryrefslogtreecommitdiffstats
path: root/net/ping.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-08-19 14:20:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-13 10:49:21 +0200
commit9296260a7858f0e9cb4d0123bdabd72f1e457bbd (patch)
tree1759e33bbd3ffed2fad8007f53ad753ef3f8c036 /net/ping.c
parent3487f1ee8e0345ed22c6097be4466c0b96590604 (diff)
downloadbarebox-9296260a7858f0e9cb4d0123bdabd72f1e457bbd.tar.gz
barebox-9296260a7858f0e9cb4d0123bdabd72f1e457bbd.tar.xz
net: split NetLoop in NetLoop and NetLoopInit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ping.c b/net/ping.c
index 1fef18ae0b..26b7778823 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -97,6 +97,9 @@ int do_ping (cmd_tbl_t *cmdtp, int argc, char *argv[])
return -1;
}
+ if (NetLoopInit(PING) < 0)
+ return 1;
+
if (NetLoop(PING) < 0) {
printf("ping failed; host %s is not alive\n", argv[1]);
return 1;