mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +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:
@@ -41,7 +41,7 @@ EMBED_ALL
|
||||
/* Image structures for all embedded images */
|
||||
#undef EMBED
|
||||
#define EMBED( _index, _path, _name ) { \
|
||||
.refcnt = { .free = embedded_image_free, }, \
|
||||
.refcnt = REF_INIT ( embedded_image_free ), \
|
||||
.name = _name, \
|
||||
.data = ( userptr_t ) ( embedded_image_ ## _index ## _data ), \
|
||||
.len = ( size_t ) embedded_image_ ## _index ## _len, \
|
||||
|
||||
Reference in New Issue
Block a user