]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
From mainline: 2002-03-06 Jim Blandy <jimb@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 15 Apr 2002 04:15:16 +0000 (04:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 15 Apr 2002 04:15:16 +0000 (04:15 +0000)
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions.  Mark `data' arguments as unused.

libiberty/ChangeLog
libiberty/splay-tree.c

index e46c71128e8792de1e79133b4fa1d11d9cd28d82..0f0cba3eb2ef5f6382445fde2a68797d782d58c5 100644 (file)
@@ -1,3 +1,10 @@
+2002-04-15  Andrew Cagney  <ac131313@redhat.com>
+
+       From mainline: 2002-03-06  Jim Blandy  <jimb@redhat.com>
+       * splay-tree.c (splay_tree_xmalloc_allocate,
+       splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
+       prototyped definitions.  Mark `data' arguments as unused.
+
 2002-02-21  Jim Blandy  <jimb@redhat.com>
 
        * splay-tree.c (splay_tree_xmalloc_allocate,
index f12b4cc5007b782f9c38d273db802c2a0178c8ca..7999447bc11022037536c056cd96f5661de92992 100644 (file)
@@ -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);
 }