mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 06:22:59 +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:
@@ -198,7 +198,7 @@ int open ( const char *uri_string ) {
|
||||
file = zalloc ( sizeof ( *file ) );
|
||||
if ( ! file )
|
||||
return -ENOMEM;
|
||||
file->refcnt.free = posix_file_free;
|
||||
ref_init ( &file->refcnt, posix_file_free );
|
||||
file->fd = fd;
|
||||
file->rc = -EINPROGRESS;
|
||||
xfer_init ( &file->xfer, &posix_file_xfer_operations,
|
||||
|
||||
Reference in New Issue
Block a user