mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 09:32:33 +03:00
[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>
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user