hmap: Make HMAP_INITIALIZER a valid initializer for a const hmap.
authorBen Pfaff <blp@nicira.com>
Fri, 26 Apr 2013 18:10:53 +0000 (11:10 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 3 May 2013 20:29:46 +0000 (13:29 -0700)
commite37726e467cf5523161c1b932b979a8818c76b25
treef19efc3e383004d7c8e3e5583bd5e9dbfe62d4b3
parent07fc4ed3410006950012aef8d78f017c5b833e98
hmap: Make HMAP_INITIALIZER a valid initializer for a const hmap.

Without this change, an initialization such as
    const struct hmap map = HMAP_INITIALIZER(&map);
yields a compiler warning "initialization discards qualifiers from pointer
target type".

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/hmap.h