aboutsummaryrefslogtreecommitdiffstats
path: root/src/libdcache/dcache_clean_expired.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-08-20 18:12:37 +0000
committerLaurent Bercot <ska@appnovation.com>2024-08-20 18:12:37 +0000
commit45c04a53fb9fbefe4dd86514c7563b4af1961dfb (patch)
tree4e90eed434b9292e405245d5394e9a9f3e3a3c46 /src/libdcache/dcache_clean_expired.c
parent1360696c2d6ed7083a71979c8382c9d34df12cf0 (diff)
downloadshibari-45c04a53fb9fbefe4dd86514c7563b4af1961dfb.tar.gz
Add a lot of stuff, disable shibari-cache build for now
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libdcache/dcache_clean_expired.c')
-rw-r--r--src/libdcache/dcache_clean_expired.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libdcache/dcache_clean_expired.c b/src/libdcache/dcache_clean_expired.c
index 0e23443..d81bec8 100644
--- a/src/libdcache/dcache_clean_expired.c
+++ b/src/libdcache/dcache_clean_expired.c
@@ -8,13 +8,13 @@
#include <shibari/dcache.h>
#include "dcache-internal.h"
-void dcache_clean_expired (dcache_t *z, tain const *stamp)
+void dcache_clean_expired (dcache *z, tai const *stamp)
{
for (;;)
{
uint32_t i ;
if (!avltree_min(&z->by_expire, &i)) break ;
- if (tain_less(stamp, &DNODE(z, i)->expire)) break ;
+ if (tai_less(stamp, &DNODE(z, i)->expire)) break ;
dcache_delete(z, i) ;
}
}