X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fhmap.h;h=2867bfa0b1ffa3f9a8c8b21dca63632a0e9e81e4;hb=4cceacb94cfc1d75a961d3d746d2ae369c397ae5;hp=246fba2cb976cd25a5a76590e4d5aa00fecca097;hpb=e39e5b9d9d19f933cae177471dc0ebbc7e0041e7;p=openvswitch diff --git a/lib/hmap.h b/lib/hmap.h index 246fba2c..2867bfa0 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2012 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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