summaryrefslogtreecommitdiffstats
path: root/src/net/udp/slam.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/net/udp/slam.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/net/udp/slam.c')
-rw-r--r--src/net/udp/slam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/slam.c b/src/net/udp/slam.c
index aa15933e..3f0b0e2e 100644
--- a/src/net/udp/slam.c
+++ b/src/net/udp/slam.c
@@ -748,7 +748,7 @@ static int slam_open ( struct xfer_interface *xfer, struct uri *uri ) {
slam = zalloc ( sizeof ( *slam ) );
if ( ! slam )
return -ENOMEM;
- slam->refcnt.free = slam_free;
+ ref_init ( &slam->refcnt, slam_free );
xfer_init ( &slam->xfer, &slam_xfer_operations, &slam->refcnt );
xfer_init ( &slam->socket, &slam_socket_operations, &slam->refcnt );
xfer_init ( &slam->mc_socket, &slam_mc_socket_operations,