summaryrefslogtreecommitdiffstats
path: root/src/core/downloader.c
diff options
context:
space:
mode:
authorMichael Brown2010-06-15 18:33:23 +0200
committerMichael Brown2010-06-22 15:26:40 +0200
commit4bfd5b52c1fae75eb0449af626ec69543f9334fa (patch)
tree297bc75308e763df909fb0733c0ca2ac109ebcbc /src/core/downloader.c
parent[pcnet32] Replace pcnet32 with native driver (diff)
downloadipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.gz
ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.xz
ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.zip
[refcnt] Add ref_init() wrapper function
Standardise on using ref_init() to initialise an embedded reference count, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/downloader.c')
-rw-r--r--src/core/downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/downloader.c b/src/core/downloader.c
index 9285efa2..5499ddab 100644
--- a/src/core/downloader.c
+++ b/src/core/downloader.c
@@ -264,7 +264,7 @@ int create_downloader ( struct job_interface *job, struct image *image,
downloader = zalloc ( sizeof ( *downloader ) );
if ( ! downloader )
return -ENOMEM;
- downloader->refcnt.free = downloader_free;
+ ref_init ( &downloader->refcnt, downloader_free );
job_init ( &downloader->job, &downloader_job_operations,
&downloader->refcnt );
xfer_init ( &downloader->xfer, &downloader_xfer_operations,