[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:
@@ -503,6 +503,7 @@ static int dns_resolv ( struct resolv_interface *resolv,
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc_dns;
|
||||
}
|
||||
ref_init ( &dns->refcnt, NULL );
|
||||
resolv_init ( &dns->resolv, &null_resolv_ops, &dns->refcnt );
|
||||
xfer_init ( &dns->socket, &dns_socket_operations, &dns->refcnt );
|
||||
dns->timer.expired = dns_timer_expired;
|
||||
|
||||
Reference in New Issue
Block a user