mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
This commit is contained in:
@@ -253,7 +253,7 @@ poll_cancel(struct poll_waiter *pw)
|
||||
static struct poll_waiter *
|
||||
new_waiter(int fd, short int events)
|
||||
{
|
||||
struct poll_waiter *waiter = xcalloc(1, sizeof *waiter);
|
||||
struct poll_waiter *waiter = xzalloc(sizeof *waiter);
|
||||
assert(fd >= 0);
|
||||
waiter->fd = fd;
|
||||
waiter->events = events;
|
||||
|
Reference in New Issue
Block a user