diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-15 15:10:01 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-15 16:26:07 +0200 |
commit | 980ac3e7b1cc9b6cbb4dfdc7eb69c64133fdd5bb (patch) | |
tree | 532a4f81552ee55a2de37eece29cf3822b837c06 /fs | |
parent | 1f12076c1e4a03cd45ab477000a43a3802688f0e (diff) | |
download | barebox-980ac3e7b1cc9b6cbb4dfdc7eb69c64133fdd5bb.tar.gz barebox-980ac3e7b1cc9b6cbb4dfdc7eb69c64133fdd5bb.tar.xz |
fs tftp: use resolv to resolv ip address
instead of assuming the backingstore is a ip address, use resolv()
to make it possible to pass in a hostname.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -603,7 +603,7 @@ static int tftp_probe(struct device_d *dev) dev->priv = priv; - string_to_ip(fsdev->backingstore, &priv->server); + priv->server = resolv(fsdev->backingstore); return 0; } |