* splay-tree.c (splay_tree_xmalloc_allocate,
authorJim Blandy <jimb@codesourcery.com>
Thu, 7 Mar 2002 00:16:50 +0000 (00:16 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 7 Mar 2002 00:16:50 +0000 (00:16 +0000)
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions.  Mark `data' arguments as unused.

libiberty/ChangeLog
libiberty/splay-tree.c

index acc26ea573f1c1bddee989bc093f0c480c319793..3684ff74884c46dd5628ded5c8504f68e973bd95 100644 (file)
@@ -1,3 +1,9 @@
+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-03-06  Andrew Cagney  <ac131313@redhat.com>
 
        * floatformat.c (floatformat_arm_ext_big): Delete definition.
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);
 }
This page took 0.028794 seconds and 4 git commands to generate.