X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fhmap.h;h=2867bfa0b1ffa3f9a8c8b21dca63632a0e9e81e4;hb=ebc56baa41db060b8783051e67b6fcbc148ebd60;hp=9d07e842043f4666d79e2fe633bb45348ab5beac;hpb=e9c048007b113fdf05ca3ccbfa25d01c24f1da43;p=sliver-openvswitch.git diff --git a/lib/hmap.h b/lib/hmap.h index 9d07e8420..2867bfa0b 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -247,7 +247,7 @@ hmap_next_with_hash__(const struct hmap_node *node, size_t hash) while (node != NULL && node->hash != hash) { node = node->next; } - return (struct hmap_node *) node; + return CONST_CAST(struct hmap_node *, node); } /* Returns the first node in 'hmap' with the given 'hash', or a null pointer if