summaryrefslogtreecommitdiff
path: root/lib/hmap.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-10-25 17:11:06 -0700
committerBen Pfaff <blp@nicira.com>2010-10-29 09:48:47 -0700
commit6c2e425edffa52e126c6599a15b5a703312bd6e8 (patch)
tree5016cc211c9e60a51a26c34aff1452ed06597ef8 /lib/hmap.h
parent700712e226b325f02421189f6fb52bff167876ce (diff)
downloadopenvswitch-6c2e425edffa52e126c6599a15b5a703312bd6e8.tar.gz
hmap: New macro HMAP_NODE_NULL_INITIALIZER.
Diffstat (limited to 'lib/hmap.h')
-rw-r--r--lib/hmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hmap.h b/lib/hmap.h
index 04e51bc6d..3929c9ce5 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. */