diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-08-28 13:38:08 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-08-28 13:39:47 -1000 |
commit | af87ca720f846b91a4f466d9bc2870e68820ab87 (patch) | |
tree | b2f23ebf118cab6e2e5077b79c532390e184492d /loader | |
parent | debfe5428f1ed5f4464511027cc5077efaca7d5a (diff) | |
download | anaconda-af87ca720f846b91a4f466d9bc2870e68820ab87.tar.gz anaconda-af87ca720f846b91a4f466d9bc2870e68820ab87.tar.xz anaconda-af87ca720f846b91a4f466d9bc2870e68820ab87.zip |
Pass family to iface_ip2str() call
iface_ip2str() requires the interface device name and the address
family (e.g., AF_INET).
Diffstat (limited to 'loader')
-rw-r--r-- | loader/nfsinstall.c | 2 | ||||
-rw-r--r-- | loader/urlinstall.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c index 60dec649e..e777c59ed 100644 --- a/loader/nfsinstall.c +++ b/loader/nfsinstall.c @@ -428,7 +428,7 @@ int getFileFromNfs(char * url, char * dest, struct loaderData_s * loaderData) { */ /* get the IP of the target system */ - if ((ip = iface_ip2str(loaderData->netDev)) == NULL) { + if ((ip = iface_ip2str(loaderData->netDev, AF_INET)) == NULL) { logMessage(ERROR, "nl_ip2str returned NULL"); return 1; } diff --git a/loader/urlinstall.c b/loader/urlinstall.c index cd859d0f7..f977d80b8 100644 --- a/loader/urlinstall.c +++ b/loader/urlinstall.c @@ -299,7 +299,7 @@ int getFileFromUrl(char * url, char * dest, memset(&ui, 0, sizeof(ui)); ui.protocol = proto; - if ((ip = iface_ip2str(loaderData->netDev)) == NULL) { + if ((ip = iface_ip2str(loaderData->netDev, AF_INET)) == NULL) { logMessage(ERROR, "getFileFromUrl: no client IP information"); return 1; } |