mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +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:
@@ -271,6 +271,7 @@ static struct settings_operations dhcppkt_settings_operations = {
|
||||
*/
|
||||
void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct dhcphdr *data,
|
||||
size_t len ) {
|
||||
ref_init ( &dhcppkt->refcnt, NULL );
|
||||
dhcppkt->dhcphdr = data;
|
||||
dhcppkt->max_len = len;
|
||||
dhcpopt_init ( &dhcppkt->options, &dhcppkt->dhcphdr->options,
|
||||
|
||||
Reference in New Issue
Block a user