X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhmap.h;h=9b6d8c7b302e0d4341daed1dc483f3099b3043c2;hb=8d71683b7632b5b621dd21418bf33ff90865b4e0;hp=2867bfa0b1ffa3f9a8c8b21dca63632a0e9e81e4;hpb=8706009e555bb9fa04a5679e4be2c7c67506802b;p=sliver-openvswitch.git diff --git a/lib/hmap.h b/lib/hmap.h index 2867bfa0b..9b6d8c7b3 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -65,7 +65,8 @@ struct hmap { }; /* Initializer for an empty hash map. */ -#define HMAP_INITIALIZER(HMAP) { &(HMAP)->one, NULL, 0, 0 } +#define HMAP_INITIALIZER(HMAP) \ + { (struct hmap_node **const) &(HMAP)->one, NULL, 0, 0 } /* Initialization. */ void hmap_init(struct hmap *);