summaryrefslogtreecommitdiff
path: root/libiberty/splay-tree.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>2002-03-07 00:20:12 +0000
committerJim Blandy <jimb@gcc.gnu.org>2002-03-07 00:20:12 +0000
commit957978a41420f708afab4ffe749e6399031cb031 (patch)
tree0408ed42cc96b73ea00d959258ba3b4ef2247d92 /libiberty/splay-tree.c
parent51532731d141d998342b6e3006194c38b4289eac (diff)
downloadgcc-957978a41420f708afab4ffe749e6399031cb031.tar.gz
splay-tree.c (splay_tree_xmalloc_allocate, [...]): Use K&R-style definitions, not prototyped definitions.
* splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): Use K&R-style definitions, not prototyped definitions. Mark `data' arguments as unused. From-SVN: r50384
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r--libiberty/splay-tree.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c
index f12b4cc5007..7999447bc11 100644
--- a/libiberty/splay-tree.c
+++ b/libiberty/splay-tree.c
@@ -230,13 +230,17 @@ splay_tree_foreach_helper (sp, node, fn, data)
/* An allocator and deallocator based on xmalloc. */
static void *
-splay_tree_xmalloc_allocate (int size, void *data)
+splay_tree_xmalloc_allocate (size, data)
+ int size;
+ void *data ATTRIBUTE_UNUSED;
{
return xmalloc (size);
}
static void
-splay_tree_xmalloc_deallocate (void *object, void *data)
+splay_tree_xmalloc_deallocate (object, data)
+ void *object;
+ void *data ATTRIBUTE_UNUSED;
{
free (object);
}