Browse Source

small fix on adding blocks to address- and size-ordered lists

Ioannis Koutras 12 years ago
parent
commit
9da89b0eb8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      private-include/freelist/ordering_policy.h

+ 2 - 2
private-include/freelist/ordering_policy.h

@@ -40,7 +40,7 @@
 
 #if defined (ADDRESS_ORDERED)
 #include "freelist/ordering/address.h"
-#define ADD_BLOCK(block) add_to_address_ordered(raw_block, block)
+#define ADD_BLOCK(block) add_to_address_ordered(&raw_block->fl_head, block)
 
 #elif defined (FIFO_ORDERED)
 #include "freelist/ordering/fifo.h"
@@ -52,7 +52,7 @@
 
 #elif defined (SIZE_ORDERED)
 #include "freelist/ordering/size.h"
-#define ADD_BLOCK(block) add_to_size_ordered(raw_block, block)
+#define ADD_BLOCK(block) add_to_size_ordered(&raw_block->fl_head, block)
 
 #endif /* ADDRESS_ORDERED */