diff options
author | Michael Brown | 2010-06-15 18:33:23 +0200 |
---|---|---|
committer | Michael Brown | 2010-06-22 15:26:40 +0200 |
commit | 4bfd5b52c1fae75eb0449af626ec69543f9334fa (patch) | |
tree | 297bc75308e763df909fb0733c0ca2ac109ebcbc /src/net/tls.c | |
parent | [pcnet32] Replace pcnet32 with native driver (diff) | |
download | ipxe-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/tls.c')
-rw-r--r-- | src/net/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tls.c b/src/net/tls.c index 3c72b45c..8825c5c1 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -1731,7 +1731,7 @@ int add_tls ( struct xfer_interface *xfer, struct xfer_interface **next ) { if ( ! tls ) return -ENOMEM; memset ( tls, 0, sizeof ( *tls ) ); - tls->refcnt.free = free_tls; + ref_init ( &tls->refcnt, free_tls ); filter_init ( &tls->plainstream, &tls_plainstream_operations, &tls->cipherstream, &tls_cipherstream_operations, &tls->refcnt ); |