9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2012-04-15 15:10:01 +02:00
parent 1f12076c1e
commit 980ac3e7b1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}