Skip to content

Commit

Permalink
Fix it so it really compiles this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattconte committed Apr 11, 2016
1 parent 9620fac commit bd50675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tlsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ typedef struct integrity_t

#define tlsf_insist(x) { tlsf_assert(x); if (!(x)) { status--; } }

static void integrity_walker(void* ptr, size_t size, int /*used*/, void* user)
static void integrity_walker(void* ptr, size_t size, int used, void* user)
{
block_header_t* block = block_from_ptr(ptr);
integrity_t* integ = tlsf_cast(integrity_t*, user);
Expand All @@ -818,6 +818,7 @@ static void integrity_walker(void* ptr, size_t size, int /*used*/, void* user)
const size_t this_block_size = block_size(block);

int status = 0;
(void)used;
tlsf_insist(integ->prev_status == this_prev_status && "prev status incorrect");
tlsf_insist(size == this_block_size && "block size incorrect");

Expand Down

0 comments on commit bd50675

Please sign in to comment.