summaryrefslogtreecommitdiffstats
path: root/src/core/downloader.c
diff options
context:
space:
mode:
authorMichael Brown2007-05-18 16:16:06 +0200
committerMichael Brown2007-05-18 16:16:06 +0200
commit59e738d756552ff19c59f39ccd094321b21eab01 (patch)
treed29b2560eb6b97fd8684233a9b14cbc811eb26b9 /src/core/downloader.c
parentDo not hold self-references. This then avoids the problem of having to (diff)
downloadipxe-59e738d756552ff19c59f39ccd094321b21eab01.tar.gz
ipxe-59e738d756552ff19c59f39ccd094321b21eab01.tar.xz
ipxe-59e738d756552ff19c59f39ccd094321b21eab01.zip
Prefix all the open()-family routines with xfer_, to disambiguate them
from the normal POSIX-style open()
Diffstat (limited to 'src/core/downloader.c')
-rw-r--r--src/core/downloader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/downloader.c b/src/core/downloader.c
index 653a4806..2f28bc95 100644
--- a/src/core/downloader.c
+++ b/src/core/downloader.c
@@ -239,7 +239,7 @@ static void downloader_xfer_close ( struct xfer_interface *xfer, int rc ) {
/** Downloader data transfer interface operations */
static struct xfer_interface_operations downloader_xfer_operations = {
.close = downloader_xfer_close,
- .vredirect = vopen,
+ .vredirect = xfer_vopen,
.request = ignore_xfer_request,
.seek = downloader_xfer_seek,
.deliver_iob = xfer_deliver_as_raw,
@@ -285,8 +285,8 @@ int create_downloader ( struct job_interface *job, const char *uri_string,
downloader->register_image = register_image;
/* Instantiate child objects and attach to our interfaces */
- if ( ( rc = open ( &downloader->xfer, LOCATION_URI,
- uri_string ) ) != 0 )
+ if ( ( rc = xfer_open ( &downloader->xfer, LOCATION_URI,
+ uri_string ) ) != 0 )
goto err;
/* Attach parent interface, mortalise self, and return */