From: Ben Pfaff Date: Tue, 26 Oct 2010 00:11:06 +0000 (-0700) Subject: hmap: New macro HMAP_NODE_NULL_INITIALIZER. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2e425edffa52e126c6599a15b5a703312bd6e8;p=openvswitch hmap: New macro HMAP_NODE_NULL_INITIALIZER. --- diff --git a/lib/hmap.h b/lib/hmap.h index 04e51bc6..3929c9ce 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. */