summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-07 08:12:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-07 08:12:40 +0100
commitbba3ddf8ef75a6102f48e6017e18f2e703cd3459 (patch)
treefd0a87102d26c91d08c03476650afdc66c9b36c5 /common
parent4f23fb1070262255443d5fe0c5db757b1b8ea2c2 (diff)
parenta0e2d2fa05384cf9b9c1f00448e1ca175b7b3afb (diff)
downloadbarebox-bba3ddf8ef75a6102f48e6017e18f2e703cd3459.tar.gz
Merge branch 'for-next/net'
Diffstat (limited to 'common')
-rw-r--r--common/blspec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/blspec.c b/common/blspec.c
index 2c682e1..41f2a4c 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -303,9 +303,11 @@ static char *parse_nfs_url(const char *url)
goto out;
}
- ip = resolv(host);
- if (ip == 0)
+ ret = resolv(host, &ip);
+ if (ret) {
+ pr_err("Cannot resolve \"%s\": %s\n", host, strerror(-ret));
goto out;
+ }
hostpath = basprintf("%pI4:%s", &ip, path);