diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-03-07 00:16:50 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-03-07 00:16:50 +0000 |
commit | 3ddbd84c49e7b450704e5d88d96da2ded31a5b01 (patch) | |
tree | 204c1a6d446a8cfc0879e5b35b76ab0cd0277c25 /libiberty/splay-tree.c | |
parent | 6ef66e32b138a24bec4aa93c9e1f62355f4cd87d (diff) | |
download | gdb-3ddbd84c49e7b450704e5d88d96da2ded31a5b01.zip gdb-3ddbd84c49e7b450704e5d88d96da2ded31a5b01.tar.gz gdb-3ddbd84c49e7b450704e5d88d96da2ded31a5b01.tar.bz2 |
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions. Mark `data' arguments as unused.
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r-- | libiberty/splay-tree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index f12b4cc..7999447 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); } |