X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhmap.h;h=9b6d8c7b302e0d4341daed1dc483f3099b3043c2;hb=32383c3bd064fb87ec2b366569ba1185698c2e6d;hp=2867bfa0b1ffa3f9a8c8b21dca63632a0e9e81e4;hpb=ebc56baa41db060b8783051e67b6fcbc148ebd60;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 *);