mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
This commit is contained in:
@@ -172,7 +172,7 @@ dhclient_create(const char *netdev_name,
|
||||
return error;
|
||||
}
|
||||
|
||||
cli = xcalloc(1, sizeof *cli);
|
||||
cli = xzalloc(sizeof *cli);
|
||||
cli->modify_request = modify_request;
|
||||
cli->validate_offer = validate_offer;
|
||||
cli->aux = aux;
|
||||
|
||||
Reference in New Issue
Block a user