mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
uuid: New macro UUID_ZERO for an all-zero expression or initializer.
This is convenient in expressions, e.g. "uuid = x ? *x : UUID_ZERO;". Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
This commit is contained in:
@@ -115,7 +115,7 @@ uuid_set_bits_v4(struct uuid *uuid)
|
||||
void
|
||||
uuid_zero(struct uuid *uuid)
|
||||
{
|
||||
uuid->parts[0] = uuid->parts[1] = uuid->parts[2] = uuid->parts[3] = 0;
|
||||
*uuid = UUID_ZERO;
|
||||
}
|
||||
|
||||
/* Returns true if 'uuid' is all zero, otherwise false. */
|
||||
|
||||
Reference in New Issue
Block a user