fix some minor c preprocessor abuse
This commit is contained in:
parent
acf1a8e8d2
commit
610d3070b4
2 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
#include <config.h>
|
||||
#define __USE_GNU
|
||||
#define _GNU_SOURCE
|
||||
#include <stasis/latches.h>
|
||||
#include <stasis/transactional.h>
|
||||
|
|
|
@ -56,7 +56,7 @@ static void stasis_replacement_policy_lru_hit(replacementPolicy* r, void * p) {
|
|||
}
|
||||
static void * stasis_replacement_policy_lru_get_stale(replacementPolicy* r) {
|
||||
stasis_replacement_policy_lru_t * l = r->impl;
|
||||
stasis_replacement_policy_lru_entry * e = (stasis_replacement_policy_lru_entry * ) RB_ENTRY(min)(l->lru);
|
||||
stasis_replacement_policy_lru_entry * e = (stasis_replacement_policy_lru_entry * ) rbmin(l->lru);
|
||||
return e ? e->value : 0;
|
||||
}
|
||||
static void* stasis_replacement_policy_lru_remove(replacementPolicy* r, void * p) {
|
||||
|
|
Loading…
Reference in a new issue