X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Faddrmap.c;h=6cdad386742ef3b0c4913990b34deb9bd8df8378;hb=93692b589dc7017d5a2fbdffdfad5f84f597d8f1;hp=a526167d9a01c8ec16d090450814be8219a3dacc;hpb=224c3ddb89a43bf8db06c373d4ff429477833c0f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/addrmap.c b/gdb/addrmap.c index a526167d9a..6cdad38674 100644 --- a/gdb/addrmap.c +++ b/gdb/addrmap.c @@ -1,6 +1,6 @@ /* addrmap.c --- implementation of address map data structure. - Copyright (C) 2007-2015 Free Software Foundation, Inc. + Copyright (C) 2007-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -479,7 +479,8 @@ struct mutable_foreach_data static int addrmap_mutable_foreach_worker (splay_tree_node node, void *data) { - struct mutable_foreach_data *foreach_data = data; + struct mutable_foreach_data *foreach_data + = (struct mutable_foreach_data *) data; return foreach_data->fn (foreach_data->data, addrmap_node_key (node), @@ -514,7 +515,7 @@ static const struct addrmap_funcs addrmap_mutable_funcs = static void * splay_obstack_alloc (int size, void *closure) { - struct addrmap_mutable *map = closure; + struct addrmap_mutable *map = (struct addrmap_mutable *) closure; splay_tree_node n; /* We should only be asked to allocate nodes and larger things. @@ -536,8 +537,8 @@ splay_obstack_alloc (int size, void *closure) static void splay_obstack_free (void *obj, void *closure) { - struct addrmap_mutable *map = closure; - splay_tree_node n = obj; + struct addrmap_mutable *map = (struct addrmap_mutable *) closure; + splay_tree_node n = (splay_tree_node) obj; /* We've asserted in the allocation function that we only allocate nodes or larger things, so it should be safe to put whatever