[ovs-dev] [nxm 02/42] hmap: New macro HMAP_NODE_NULL_INITIALIZER.
Justin Pettit
jpettit at nicira.com
Thu Oct 28 13:40:25 PDT 2010
Looks good.
--Justin
On Oct 28, 2010, at 10:27 AM, Ben Pfaff wrote:
> ---
> lib/hmap.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/hmap.h b/lib/hmap.h
> index 04e51bc..3929c9c 100644
> --- a/lib/hmap.h
> +++ b/lib/hmap.h
> @@ -38,6 +38,7 @@ static inline size_t hmap_node_hash(const struct hmap_node *node)
> }
>
> #define HMAP_NODE_NULL ((struct hmap_node *) 1)
> +#define HMAP_NODE_NULL_INITIALIZER { 0, HMAP_NODE_NULL }
>
> /* Returns true if 'node' has been set to null by hmap_node_nullify() and has
> * not been un-nullified by being inserted into an hmap. */
> --
> 1.7.1
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
More information about the dev
mailing list