summaryrefslogtreecommitdiffstats
path: root/net/sntp.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/sntp.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/sntp.c')
-rw-r--r--net/sntp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sntp.c b/net/sntp.c
index df22caef24..3be166a372 100644
--- a/net/sntp.c
+++ b/net/sntp.c
@@ -110,6 +110,9 @@ int do_sntp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (toff == NULL) NetTimeOffset = 0;
else NetTimeOffset = simple_strtol (toff, NULL, 10);
+ if (NetLoopInit(SNTP) < 0)
+ return 1;
+
if (NetLoop(SNTP) < 0) {
printf("SNTP failed: host %s not responding\n", argv[1]);
return 1;