Changeset 8e2e9b3 in rtems-libbsd


Ignore:
Timestamp:
Aug 27, 2014, 1:00:09 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, 26866d2c1f2432b25b5db71995bce2035187c715, freebsd-9.3, 6da0dda3255e2a49365aee6904fe00d4f2ca9d68
Children:
3d01336
Parents:
ead7fdc
git-author:
Sebastian Huber <sebastian.huber@…> (08/27/14 13:00:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/27/14 13:01:15)
Message:

Update due to rbtree API changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-chunk.c

    read7fdc r8e2e9b3  
    4848#define chunk_of_node(n) ((rtems_bsd_chunk_info *) n)
    4949
    50 static int
     50static rtems_rbtree_compare_result
    5151chunk_compare(const rtems_rbtree_node *a, const rtems_rbtree_node *b)
    5252{
     
    7272        self->info_ctor = info_ctor;
    7373        self->info_dtor = info_dtor;
    74         rtems_rbtree_initialize_empty(&self->chunks, chunk_compare, true);
     74        rtems_rbtree_initialize_empty(&self->chunks);
    7575}
    7676
     
    9191
    9292                _RTEMS_Lock_allocator();
    93                 rtems_rbtree_insert(&self->chunks, &info->node);
     93                rtems_rbtree_insert(&self->chunks, &info->node, chunk_compare, true);
    9494                _RTEMS_Unlock_allocator();
    9595        }
     
    123123
    124124        return chunk_of_node(rtems_rbtree_find(&self->chunks,
    125             &find_me.node));
     125            &find_me.node, chunk_compare, true));
    126126}
    127127
Note: See TracChangeset for help on using the changeset viewer.