libupload: use url_set_ip()
commitb61bdc9acc1df765eec9b43e6f83846dfb8a70d0
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Apr 2016 20:02:13 +0000 (6 13:02 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Apr 2016 20:02:13 +0000 (6 13:02 -0700)
tree0df9e7b385f48eaef0ed977681fb0dea4b212889
parentedb6d3e81a891331d0adea527dc4adbe45db64d4
libupload: use url_set_ip()

We already have a core function for setting the IP address of an URL
object based on network lookup or the server default.  Export and use
it instead of open-coding the equivalent logic in upload_tftp.c.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
com32/libupload/upload_tftp.c
core/fs/pxe/pxe.c
core/fs/pxe/url.h